copyWith method
WebSocketState
copyWith({
- bool? isConnected,
- bool? connectionFailed,
- 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,
);
}