It is necessary to convert Map<String, dynamic> into Map<String, String>, using as to force the compilation will not report an error, but the operation will throw an exception.
Using Map<String, String>.from solved the problem
Flutter报错:type ‘_Map<String, dynamic>‘ is not a subtype of type ‘Map<String, String>‘ in type cast
Guess you like
Origin blog.csdn.net/Memory_of_the_wind/article/details/130800456
Recommended
Ranking