emit method

  1. @protected
void emit(
  1. T state
)

Emits a new state.

This triggers a notification to all listeners if the state is different from the current value.

Implementation

@protected
void emit(T state) => _setValueInternal(state);