Future<void> deleteTask(Task task) async { state = state.where((t) => t != task).toList(); await _saveTasks(); }