Skip to content Skip to sidebar Skip to footer

Flutter: Internallinkedhashmap' Has No Instance Method 'cast' With Matching Arguments

I'm unable to find solutions from the previously available question, I have cast json string to map Below is my API calling method. Future fetchEvent( ) asyn

Solution 1:

Use instead

.cast<String,dynamic>();

See also https://api.dartlang.org/stable/2.0.0/dart-core/Map/cast.html

Usually it's better to use Map<String,String>.from(oldMap) instead of cast<...>(...)

Post a Comment for "Flutter: Internallinkedhashmap' Has No Instance Method 'cast' With Matching Arguments"