Skip to content

Instantly share code, notes, and snippets.

@ttlg
Created September 5, 2020 06:27
Show Gist options
  • Save ttlg/2db42377009b0d8cb06b713fb3b92759 to your computer and use it in GitHub Desktop.
Save ttlg/2db42377009b0d8cb06b713fb3b92759 to your computer and use it in GitHub Desktop.
todo
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:flutter/foundation.dart';
part 'todo.freezed.dart';
part 'todo.g.dart';
@freezed
abstract class Todo with _$Todo {
const factory Todo(
String content, bool done, DateTime timestamp, String uid) = _Todo;
factory Todo.fromJson(Map<String, dynamic> json) => _$TodoFromJson(json);
}
@ttlg
Copy link
Author

ttlg commented Sep 5, 2020

Pragmatic architecture using Riverpod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment