Future<void> addOrUpdateTask(CropTask task) async { await _taskCollection.doc(task.id).set(task.toJson()); }