Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] To add Annotation for default value #849

Open
mustafaG9 opened this issue Nov 25, 2024 · 0 comments
Open

[Request] To add Annotation for default value #849

mustafaG9 opened this issue Nov 25, 2024 · 0 comments

Comments

@mustafaG9
Copy link

Hello ,

I think this feature must be included in this package (Default value)

for example :

@entity
class User {
  @primaryKey
  final int id;

  final String name;

  @ColumnInfo(defaultValue: 'Guest')
  final String role;

  User({this.id, required this.name, this.role = 'Guest'});
}

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

No branches or pull requests

1 participant