change abstract method

void change(
  1. T newValue, {
  2. StateChange<T>? stateChange,
})

Function used to change state.

This function receives the new value of state and preforms changes to the currentValue and the previousValue.

Implementation

void change(T newValue, {StateChange<T>? stateChange});