TransportConfig class

Configuration options for transport implementations

Constructors

TransportConfig({Duration dialTimeout = defaultDialTimeout, Duration readTimeout = defaultReadTimeout, Duration writeTimeout = defaultWriteTimeout})
Creates a new transport configuration
const

Properties

dialTimeout Duration
Timeout for connection attempts
final
hashCode int
The hash code for this object.
no setterinherited
readTimeout Duration
Timeout for read operations
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
writeTimeout Duration
Timeout for write operations
final

Methods

copyWith({Duration? dialTimeout, Duration? readTimeout, Duration? writeTimeout}) TransportConfig
Creates a copy of this configuration with the given values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultConfig → const TransportConfig
Creates a new transport configuration with default values
defaultDialTimeout → const Duration
Default timeout for connection attempts
defaultReadTimeout → const Duration
Default timeout for read operations
defaultWriteTimeout → const Duration
Default timeout for write operations