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

Generate whenPartial with normal return type #49

Closed linxydmhg closed 4 years ago

linxydmhg commented 4 years ago

Currently whenPartial only generates with a 'Future' return type, whereas its counterparts whenOrElse or when generate a normal R return type which is much more useful

xsahil03x commented 4 years ago

@linxydmhg Do we have a use case for this? as it returns a null value.

xsahil03x commented 4 years ago

Closing as no response.