copyWith method

WebSocketState copyWith({
  1. bool? isConnected,
  2. bool? connectionFailed,
  3. PreflightResponse? preflightResponse,
})

Implementation

WebSocketState copyWith({
  bool? isConnected,
  bool? connectionFailed,
  PreflightResponse? preflightResponse,
}) {
  return WebSocketState(
    isConnected: isConnected ?? this.isConnected,
    connectionFailed: connectionFailed ?? this.connectionFailed,
    preflightResponse: preflightResponse ?? this.preflightResponse,
  );
}