改用
.cast<String,dynamic>();
另请参阅https://api.dartlang.org/stable/2.0.0/dart- core/Map/cast.html
通常,最好使用Map<String,String>.from(oldMap)
而不是cast<...>(...)
Flutter:InternalLinkedHashMap'没有实例参数'cast'具有匹配的参数
改用
.cast<String,dynamic>();
另请参阅https://api.dartlang.org/stable/2.0.0/dart- core/Map/cast.html
通常,最好使用Map<String,String>.from(oldMap)
而不是cast<...>(...)