Before enums were available in Dart I wrote some cumbersome and hard to maintain code to simulate enums and now want to simplify it. I need to get the value of the enum as
enum day {MONDAY, TUESDAY} print( 'Today is ${describeEnum(day.MONDAY)}' );
console output: Today is MONDAY