A beginner gotcha, or how _type ‘_InternalLinkedHashMap<dynamic, dynamic>’ is not a subtype of type ‘Map<String, dynamic>’ _leads you here.

As someone who often learns more by doing stuff (_wrongly _👻) than go through the the official Dart Language Tour docs, I’ve recently stumbled across an error while trying to perform a platform-specific call using Flutter MethodChannel

#flutter #cast #internallinkedhashmap #dart #method-channel

Flutter MethodChannel, Dart Generic and Type-Casting
2.35 GEEK