simulateConnectionState method

void simulateConnectionState(
  1. ChatConnectionState state
)

Simulate a connection state change.

Implementation

void simulateConnectionState(ChatConnectionState state) {
  _connected = state == ChatConnectionState.connected;
  _connectionStateController.add(state);
}