applyState abstract method

St applyState(
  1. Object? value,
  2. St state
)

Using the given state, you should apply the given value to it, and return the result.

St applyState(state) => state.copy(todoList: newTodoList);

Implementation

St applyState(Object? value, St state);