find method
Returns a task by id or throws NotFoundException.
Implementation
Future<Task> find(String id) async {
final task = await _repo.findById(id);
if (task == null) throw NotFoundException('Task $id not found');
return task;
}
Returns a task by id or throws NotFoundException.
Future<Task> find(String id) async {
final task = await _repo.findById(id);
if (task == null) throw NotFoundException('Task $id not found');
return task;
}