furaiev / amazon-cognito-identity-dart-2

Unofficial Amazon Cognito Identity Provider Dart SDK, to easily add user sign-up and sign-in to your mobile and web apps with AWS.
MIT License
187 stars 114 forks source link

[Issue #69] Solving "type '_InternalLinkedHashMap<String, String>' is not a subtype of type 'String' of 'value'" bug when ParamsDecorator receives a Map<String, String>. #124

Closed jcblancomartinez closed 3 years ago

jcblancomartinez commented 3 years ago

Within forgotPassword, confirmPassword and other operations, analyticsMetadataParamsDecorator receives a Map<String, String> as input (it implies its type as it is declared using "var"). When trying to add a new entry whose value is Map<String, String>, it fails with:

"type '_InternalLinkedHashMap<String, String>' is not a subtype of type 'String' of 'value'"

jcblancomartinez commented 3 years ago

Hi @furaiev,

Could you please review this?

Thanks.

furaiev commented 3 years ago

@jcblancomartinez thank you, your changes are available in the latest version