Closed olehmisar closed 4 years ago
Why does the generator rename enum fields? For example, if I define the following enum
enum
@superEnum enum _Result { @object Success, @object Error }
...Success becomes success and Error becomes error. Is there a reason for this? I think it would be better to keep the original names to avoid confusion.
Success
success
Error
error
Agreed!
That's how we generally write named / factory constructors in dart https://dart.dev/guides/language/language-tour#constructors
named
factory
Why does the generator rename enum fields? For example, if I define the following
enum
...
Success
becomessuccess
andError
becomeserror
. Is there a reason for this? I think it would be better to keep the original names to avoid confusion.