Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-nullable instance field 'reverseMap' must be initialized. #6

Open
daynial132 opened this issue Jan 11, 2022 · 1 comment
Open

Comments

@daynial132
Copy link

i am getting -->Non-nullable instance field 'reverseMap' must be initialized.<-- error on { EnumValues(this.map) ; } in products.dart file can you guide me how to resolve it and what does it means

@sat4talk
Copy link

sat4talk commented Aug 19, 2022

you could make reverseMap nullable by using
Map<T, String>? reverseMap;
instead of
Map<T, String> reverseMap;

there are still more errors. if interested tell me.. I have resolved all errors successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants