removeTodo method

void removeTodo(
  1. String id
)

Implementation

void removeTodo(String id) {
  state = state.where((todo) => todo.id != id).toList();
}