ChannelOptions constructor
const
ChannelOptions({
- ChannelCredentials credentials = const ChannelCredentials.secure(),
- Duration? idleTimeout = defaultIdleTimeout,
- String? userAgent,
- BackoffStrategy backoffStrategy = defaultBackoffStrategy,
- Duration? connectTimeout,
- Duration connectionTimeout = defaultConnectionTimeOut,
- CodecRegistry? codecRegistry,
- ClientKeepAliveOptions keepAlive = const ClientKeepAliveOptions(),
- Proxy? proxy,
Implementation
const ChannelOptions({
this.credentials = const ChannelCredentials.secure(),
this.idleTimeout = defaultIdleTimeout,
String? userAgent,
this.backoffStrategy = defaultBackoffStrategy,
this.connectTimeout,
this.connectionTimeout = defaultConnectionTimeOut,
this.codecRegistry,
this.keepAlive = const ClientKeepAliveOptions(),
this.proxy,
}) : _userAgent = userAgent;