todoFetch function

Future<List<Todo>> todoFetch(
  1. File file
)

Fetching TODOs from file

Implementation

Future<List<Todo>> todoFetch(File file) async {
  return file.readAsLines().fetchTodos(file.path);
}