emit method Null safety
- State state
emit should never be used outside of tests.
Updates the state of the bloc to the provided
A bloc's state should only be updated by
yielding a new
mapEventToState in response to an event.
@protected @visibleForTesting @override void emit(State state) => super.emit(state);