4 ms·
I might be missing something here, don't records already exist? https://dart.dev/language/records https://dart.dev/language/records
by suddenexample 2y ago
I might be missing something here, don't records already exist? https://dart.dev/language/records https://dart.dev/language/records
- cageface 2y agoThey exist but they're still missing a lot of things you'd want in a data class like copyWith, serialization etc. In practice in a Dart app you usually use freezed or something similar: https://pub.dev/packages/freezed https://pub.dev/packages/freezed