timeout property

Duration timeout

The timeout of stored requests.

Implementation

Duration get timeout => _timeout;
void timeout=(Duration value)

Implementation

set timeout(Duration value) {
  if (value.inMilliseconds <= 0) {
    _timeout = _noDuration;
  } else {
    if (value.inSeconds < 1) value = Duration(seconds: 1);
    _timeout = value;
  }
}