data_class
data_class copied to clipboard
Experimental support for data classes in Dart using macros.
**Description** It would be really handy if a static initial(), function could be created for every property. This would be in the line of immutable objects and the copy with...
**Description** It'd be nice to revert back to the original `copyWith` API (no lambdas) but be able to maintain the ability to copyWith null values. **Desired API** ```dart @Data() class...
This is one of the most important features for Data classes in Dart
Currently just using deep collection equality which isn't very performant and can be improved significantly. Also would be nice to share code with `package:equatable` here.
Developers should be able to mark classes that extend other classes as a data class.
**Description** Currently, it's not possible to annotate classes with generic types. ```dart @Data() class MyClass { final T value; } ``` This is blocked on https://github.com/dart-lang/sdk/issues/55762
### Issue Description In Dart 3, there is an issue with Dart macros when applied to sealed classes. The macros incorrectly add the `abstract` keyword to the generated code, resulting...
https://medium.com/dartlang/an-update-on-dart-macros-data-serialization-06d3037d4f12