copyWith method

WsLimits copyWith({
  1. int? maxFrameBytes,
  2. Duration? handshakeTimeout,
  3. Duration? pingInterval,
  4. int? maxConnections,
  5. int? maxEndpointsPerConnection,
  6. int? maxLiveQueriesPerConnection,
  7. int? maxPeers,
  8. int? maxInboundBytesPerSecond,
  9. int? inboundBurstBytes,
})

Implementation

WsLimits copyWith({
  int? maxFrameBytes,
  Duration? handshakeTimeout,
  Duration? pingInterval,
  int? maxConnections,
  int? maxEndpointsPerConnection,
  int? maxLiveQueriesPerConnection,
  int? maxPeers,
  int? maxInboundBytesPerSecond,
  int? inboundBurstBytes,
}) => WsLimits(
  maxFrameBytes: maxFrameBytes ?? this.maxFrameBytes,
  handshakeTimeout: handshakeTimeout ?? this.handshakeTimeout,
  pingInterval: pingInterval ?? this.pingInterval,
  maxConnections: maxConnections ?? this.maxConnections,
  maxEndpointsPerConnection:
      maxEndpointsPerConnection ?? this.maxEndpointsPerConnection,
  maxLiveQueriesPerConnection:
      maxLiveQueriesPerConnection ?? this.maxLiveQueriesPerConnection,
  maxPeers: maxPeers ?? this.maxPeers,
  maxInboundBytesPerSecond:
      maxInboundBytesPerSecond ?? this.maxInboundBytesPerSecond,
  inboundBurstBytes: inboundBurstBytes ?? this.inboundBurstBytes,
);