timeout property

int get timeout

Returns the maximum possible timeout (in milliseconds) for the current number of failed tries.

Implementation

int get timeout {
  final period = pow(initial, _tries) as int;
  return period.isNegative ? cap : min(period, cap);
}