The only thing I can find to set the enum value is this: Add methods or values to enum in dart
However, I find it a bit tedious. Is there a better way?
In C# I can just simply do something like this:
enum ErrorCode
{
None = 0,
Unknown = 1,
ConnectionLost = 100,
OutlierReading = 200
}