← All blogs

dust blog

Dart 3.13 Models Still Need Their Helpers

A Dart 3.13 primary constructor beside a Dust data-class derive

Dart 3.13 makes class declarations shorter with primary constructors. It does not add copyWith, value equality, or a useful toString. Dust lets you keep the short model you own and choose those helpers with @Derive. Run dust build, review the .g.dart part, and keep working with the same Dart class.

Read the Dust data-class guide.

#Dust #DataClass #Dart #CodeGeneration