Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Why renaming enum fields? #50

Closed
olehmisar opened this issue Mar 2, 2020 · 2 comments
Closed

Why renaming enum fields? #50

olehmisar opened this issue Mar 2, 2020 · 2 comments

Comments

@olehmisar
Copy link

Why does the generator rename enum fields? For example, if I define the following 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.

@shinayser
Copy link

Agreed!

@xsahil03x
Copy link
Owner

That's how we generally write named / factory constructors in dart
https://dart.dev/guides/language/language-tour#constructors

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants