TimeoutInterceptor constructor

TimeoutInterceptor(
  1. Duration duration, {
  2. String phase = 'operation',
})

Implementation

TimeoutInterceptor(this.duration, {this.phase = 'operation'}) {
  if (duration <= Duration.zero) throw ArgumentError.value(duration);
}