Closed AYM1607 closed 5 years ago
The task model uses ints to encode the priority, this could lead to confusion and bugs. Change it to use an enum. Add the parsing capabilities needed to interact with firestore.
the enum should look something like:
enum TaskPriority { low, medium, high, }
https://github.com/AYM1607/do_more/commit/f38146507e9052486d0d96fe83ce2ee4b256c473 resolves this issue.
The task model uses ints to encode the priority, this could lead to confusion and bugs. Change it to use an enum. Add the parsing capabilities needed to interact with firestore.
the enum should look something like: