ChannelOptions constructor

const ChannelOptions({
  1. ChannelCredentials credentials = const ChannelCredentials.secure(),
  2. Duration? idleTimeout = defaultIdleTimeout,
  3. String userAgent = defaultUserAgent,
  4. BackoffStrategy backoffStrategy = defaultBackoffStrategy,
  5. Duration? connectTimeout,
  6. Duration connectionTimeout = defaultConnectionTimeOut,
  7. CodecRegistry? codecRegistry,
  8. ClientKeepAliveOptions keepAlive = const ClientKeepAliveOptions(),
  9. 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,
});