add method

void add(
  1. T? value
)

Updates the current value of the StateBloc to the provided value.

Implementation

void add(T? value) {
  _updateValue(value);
  if (!_hasEmitted) {
    _hasEmitted = true;
  }
  _controller.add(StateChangeTuple(_prevValue, _value));
}