rknell / flutterEnumsToString

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

Closed vxern closed 3 years ago

vxern commented 3 years ago

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().