Open fotonmoton opened 4 years ago
Hi @fotonmoton,
Thanks for reporting this issue! Unfortunately, this problem is more related to the intl_translation package, which we are using for generating localization files.
A temporary solution for this would be to exclude the generated
directory from the analysis (update analysis_options.yaml
file).
...
analyzer:
exclude:
- "lib/generated/*"
...
Note, this solution may not work always (reported issue). Restarting your IDE and not opening excluded files should help you with the above-mentioned issue.
A value of type 'dynamic' can't be assigned to a variable of type 'Map<String, dynamic>'. Try changing the type of the variable, or casting the right-hand type to 'Map<String, dynamic>'.
If I add return type then typechecker doesn't complain: