Refactor stuff to use dart 3 features #460
Labels
chore
Something that is not a bug or a feature, does not change production behaviour
priority: low
Should be dealt with when nothing else remains.
Milestone
What
I think it may be really nice to refactor all/most of our 'states' into sealed classes.
Why
The UI code can then be cleaned up a lot by using switch expressions instead of loads of if-statements.
How
https://medium.com/@aliammariraq/sealed-classes-in-dart-unlocking-powerful-features-d8dba185925f gives some examples and background on the language changes.
The text was updated successfully, but these errors were encountered: