Skip to content

Commit

Permalink
code generation for enum is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
anidotnet committed May 3, 2024
1 parent c20fb10 commit ccc3c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flutter-sdk/repository/codegen.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ There are certain limitations of each of the generators as described below:

### Converter Generator

- `@Convertable` annotation can only be used on a class and not on an abstract class or mixin.
- `@Convertable` annotation can only be used on a class and enum and not on an abstract class or mixin.
- `@Convertable` can only be used on a class which has at least one public constructor which is either a default constructor or one with all the parameters named or optional.
- A class with a constructor having all positional optional parameters should not have any final field.
- A class with a constructor having all named parameters (optional/required) should have all the fields' names same as the parameter names.
Expand Down

0 comments on commit ccc3c15

Please sign in to comment.