
Data classes, unions, and fewer lines of code
Senior Engineer at Very Good Ventures
I'm a Senior Engineer at Very Good Ventures, a Flutter development consultancy. I build Flutter apps for large-scale companies and do open source work for popular Dart and Flutter packages such as Very Good CLI and Dart Frog.
Markdown supported · ⌘↵ to post
sarfaraz ahmed
how to achieve something like this using freezed
class Todo { Todo( this.description, { this.completed = false, String? id, }) : id = id ?? _uuid.v4();
final String id; final String description; final bool completed; }