Better conversion of ENUMs to string for Flutter / Dart
Other
85
stars
23
forks
source link
`EnumToString` is an unnecessarily long class name. Add to that a function call, and you've got yourself a 6-word call to convert an enum to a string. #31
Enum is not an existent class, and is free to be used. Enum.toString() and Enum.fromString() are -- in my opinion -- better, more concise ways to execute enum-to-string conversions than EnumToString.convertToString() and EnumToString.fromString().
Enum
is not an existent class, and is free to be used.Enum.toString()
andEnum.fromString()
are -- in my opinion -- better, more concise ways to execute enum-to-string conversions thanEnumToString.convertToString()
andEnumToString.fromString()
.