Flutter报错:type ‘_Map<String, dynamic>‘ is not a subtype of type ‘Map<String, String>‘ in type cast

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.
insert image description here
Using Map<String, String>.from solved the problem
insert image description here

Guess you like

Origin blog.csdn.net/Memory_of_the_wind/article/details/130800456