emit method

  1. @override
void emit(
  1. ChatState state
)
inherited

Updates the state to the provided state. emit does nothing if the state being emitted is equal to the current state.

To allow for the possibility of notifying listeners of the initial state, emitting a state which is equal to the initial state is allowed as long as it is the first thing emitted by the instance.

Implementation

@override
void emit(state) {
  if (isClosed) {
    return;
  }
  super.emit(state);
}