Releases: callius/target-dart
Releases · callius/target-dart
0.8.1
0.8.0
Breaking Changes:
- New
target_annotation_processor
paradigm centered around theValidatable
annotation.- Removed dependency on
freezed
. - Validation function, named
_$of
, is generated based on unnamed constructor arguments.
- Removed dependency on
Before:
@ModelTemplate("Some")
abstract class SomeModel {
// ...fields...
}
After:
@validatable
class Some {
const Some(/* fields */);
static const of = _$of;
}
Freezed data classes still work:
@freezed
@validatable
class Some with _$Some {
const factory Some(/* fields */) = _Some;
static const of = _$of;
}