Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Apr 18, 2024
1 parent 498a46a commit 9ca1297
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
## vNext (TBD)

### Enhancements
* None
* Allow configuration of generator per model class. Currently support specifying the constructor style to use.
```dart
const config = GeneratorConfig(ctorStyle: CtorStyle.allNamed);
const realmModel = RealmModel.using(baseType: ObjectType.realmObject, generatorConfig: config);
@realmModel
class _Person {
late String name;
int age = 42;
}
```
will generate a constructor like:
```dart
Person({
required String name,
int age = 42,
}) { ... }
```
(Issue [#292](https://github.com/realm/realm-dart/issues/292))

### Fixed
* None
Expand Down

0 comments on commit 9ca1297

Please sign in to comment.