emit method

void emit(
  1. S state
)

Implementation

void emit(S state) {
  if (this.state != state) {
    this.state = state;
    _controller.add(state);
  }
}