jankuss / genq

Instant Data Class Generation for Dart
MIT License
133 stars 0 forks source link

Add ability to define default values #7

Open jankuss opened 4 months ago

jankuss commented 4 months ago

Right now, it is not possible to define default values for classes. This is due to dart not allowing default values on redirecting constructors.

We should support this, possibly using the same approach as freezed by using a special annotation (https://pub.dev/packages/freezed#default-values).