data_class icon indicating copy to clipboard operation
data_class copied to clipboard

Experimental support for data classes in Dart using macros.

Results 8 data_class issues
Sort by recently updated
recently updated
newest added

**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...

question

**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...

enhancement

This is one of the most important features for Data classes in Dart

question

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.

enhancement

Developers should be able to mark classes that extend other classes as a data class.

enhancement

**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

enhancement

### 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...

bug

https://medium.com/dartlang/an-update-on-dart-macros-data-serialization-06d3037d4f12

documentation
question