bool isExpired(Duration timeout, {DateTime? now}) { now ??= DateTime.now(); var elapsedTime = lastAccessElapsedTime; return elapsedTime.compareTo(timeout) > 0; }