ChannelOptions constructor
const
ChannelOptions({
- ChannelCredentials credentials = const ChannelCredentials.secure(),
- Duration? idleTimeout = defaultIdleTimeout,
- String userAgent = defaultUserAgent,
- 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,
this.userAgent = defaultUserAgent,
this.backoffStrategy = defaultBackoffStrategy,
this.connectTimeout,
this.connectionTimeout = defaultConnectionTimeOut,
this.codecRegistry,
this.keepAlive = const ClientKeepAliveOptions(),
this.proxy,
});