isExpired method

bool isExpired(
  1. Duration timeout, {
  2. DateTime? now,
})

Implementation

bool isExpired(Duration timeout, {DateTime? now}) {
  now ??= DateTime.now();

  var elapsedTime = lastAccessElapsedTime;
  return elapsedTime.compareTo(timeout) > 0;
}