connectionState method

void connectionState(
  1. ConnectionState state
)

Transitions the fake into state and emits to connectionState.

Implementation

void connectionState(ConnectionState state) {
  _client._currentConnectionState = state;
  _client._connectionStateController.add(state);
}