Skip to content

Instantly share code, notes, and snippets.

@felangel
Created August 4, 2019 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felangel/0f3c220433cafb6f8453576d8a170977 to your computer and use it in GitHub Desktop.
Save felangel/0f3c220433cafb6f8453576d8a170977 to your computer and use it in GitHub Desktop.
[flutter_firestore_todos] todos repository base
import 'dart:async';
import 'package:todos_repository/todos_repository.dart';
abstract class TodosRepository {
Future<void> addNewTodo(Todo todo);
Future<void> deleteTodo(Todo todo);
Stream<List<Todo>> todos();
Future<void> updateTodo(Todo todo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment