xsahil03x / super_enum

Create super-powered dart enums similar to sealed classes in Kotlin
https://pub.dev/packages/super_enum
MIT License
116 stars 13 forks source link

How can I convert a String to a Enum Type #68

Open ride4sun opened 3 years ago

ride4sun commented 3 years ago

I would like to generate a super enum Type from a String. I would expect something like:

MyEnum enum = MyEnum.fromString(String Name);

Actually, support for the roundtrip String conversion should be supported from and to String.