copyWith method

StompConfig copyWith({
  1. String? url,
  2. Duration? reconnectDelay,
  3. Duration? heartbeatIncoming,
  4. Duration? heartbeatOutgoing,
  5. Duration? connectionTimeout,
  6. bool? useSockJS,
  7. Map<String, String>? stompConnectHeaders,
  8. Map<String, dynamic>? webSocketConnectHeaders,
  9. StompBeforeConnectCallback? beforeConnect,
  10. StompFrameCallback? onConnect,
  11. StompFrameCallback? onStompError,
  12. StompFrameCallback? onDisconnect,
  13. StompFrameCallback? onUnhandledFrame,
  14. StompFrameCallback? onUnhandledMessage,
  15. StompFrameCallback? onUnhandledReceipt,
  16. StompWebSocketErrorCallback? onWebSocketError,
  17. StompWebSocketDoneCallback? onWebSocketDone,
  18. StompDebugCallback? onDebugMessage,
})

Implementation

StompConfig copyWith({
  String? url,
  Duration? reconnectDelay,
  Duration? heartbeatIncoming,
  Duration? heartbeatOutgoing,
  Duration? connectionTimeout,
  bool? useSockJS,
  Map<String, String>? stompConnectHeaders,
  Map<String, dynamic>? webSocketConnectHeaders,
  StompBeforeConnectCallback? beforeConnect,
  StompFrameCallback? onConnect,
  StompFrameCallback? onStompError,
  StompFrameCallback? onDisconnect,
  StompFrameCallback? onUnhandledFrame,
  StompFrameCallback? onUnhandledMessage,
  StompFrameCallback? onUnhandledReceipt,
  StompWebSocketErrorCallback? onWebSocketError,
  StompWebSocketDoneCallback? onWebSocketDone,
  StompDebugCallback? onDebugMessage,
}) {
  return StompConfig(
    url: url ?? this.url,
    reconnectDelay: reconnectDelay ?? this.reconnectDelay,
    heartbeatIncoming: heartbeatIncoming ?? this.heartbeatIncoming,
    heartbeatOutgoing: heartbeatOutgoing ?? this.heartbeatOutgoing,
    connectionTimeout: connectionTimeout ?? this.connectionTimeout,
    useSockJS: useSockJS ?? this.useSockJS,
    webSocketConnectHeaders:
        webSocketConnectHeaders ?? this.webSocketConnectHeaders,
    stompConnectHeaders: stompConnectHeaders ?? this.stompConnectHeaders,
    beforeConnect: beforeConnect ?? this.beforeConnect,
    onConnect: onConnect ?? this.onConnect,
    onStompError: onStompError ?? this.onStompError,
    onDisconnect: onDisconnect ?? this.onDisconnect,
    onUnhandledFrame: onUnhandledFrame ?? this.onUnhandledFrame,
    onUnhandledMessage: onUnhandledMessage ?? this.onUnhandledMessage,
    onUnhandledReceipt: onUnhandledReceipt ?? this.onUnhandledReceipt,
    onWebSocketError: onWebSocketError ?? this.onWebSocketError,
    onWebSocketDone: onWebSocketDone ?? this.onWebSocketDone,
    onDebugMessage: onDebugMessage ?? this.onDebugMessage,
  );
}