Last active
September 12, 2020 09:57
-
-
Save 6220119/19e6607e2ae03748b23435ea2be67ff4 to your computer and use it in GitHub Desktop.
CastError in dart Sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
final platformChannel = MethodChannel('special'); | |
// ... | |
final data = platformChannel.invokeMethod<Map<String, dynamic>('getData', arguments); | |
// got CastError: type '_InternalLinkedHashMap<dynamic, dynamic>' | |
// is not a subtype of type 'Map<String, dynamic>' in type cast |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment