- Revert the previous behavior.
- Simplify use of ValueGetter using
x?.call() ?? this.x
insteadx != null ? x() : this.x
. Thanks to Petr Nymsa.
- Update
List<Object> props = []
toList<Object?> props = []
when any type of attribute has a nullable value when generates Equatable.
- Added support for uses ValueGetter for nullable types when generates copyWith.
- Added the setting
copyWith.usesValueGetter
to enable/disable uses of ValueGetter for nullable types when generates copyWith.
- Updated the badges in README.md.
Added support for snake_case json keys Generate toString() when converting with Equatable Other improvements
Added support for enums Use factory constructors instead of static methods for json serialization
Added support for value equality on Lists
, Maps
and Sets
.
Class fields can now also be declared after the constructor. Minor improvements.
Fixed some bugs.
Added support for equatable by setting dart-data-class-generator.useEquatable to true.
Changed setting dart-data-class-generator.constructor
to dart-data-class-generator.constructor.enabled
Changed setting dart-data-class-generator.copyWith
to dart-data-class-generator.copyWith.enabled
Changed setting dart-data-class-generator.toMap
to dart-data-class-generator.toMap.enabled
Changed setting dart-data-class-generator.fromMap
to dart-data-class-generator.fromMap.enabled
Changed setting dart-data-class-generator.toJson
to dart-data-class-generator.toJson.enabled
Changed setting dart-data-class-generator.fromJson
to dart-data-class-generator.fromJson.enabled
Changed setting dart-data-class-generator.toString
to dart-data-class-generator.toString.enabled
Changed setting dart-data-class-generator.equality
to dart-data-class-generator.equality.enabled
Changed setting dart-data-class-generator.hashCode
to dart-data-class-generator.hashCode.enabled
Added quick fixes.
Added support for @required annotation. Changed the default hashCode implementation to bitwise operator.
Initial release (Beta).