Instead of having enums with additional variables on the side that have to be accessed only when the enum is set correctly, use this: https://pub.dev/packages/freezed#union-types
This will reduce the likelihood of potentially broken program states.
Relevant files:
And maybe this can also replace
Instead of having enums with additional variables on the side that have to be accessed only when the enum is set correctly, use this: https://pub.dev/packages/freezed#union-types
This will reduce the likelihood of potentially broken program states.
Relevant files:
And maybe this can also replace
but will have to see. It's quite an integral part of the program now, and it does work pretty well already.