keysChecked method

List<K> keysChecked({
  1. DateTime? now,
  2. Duration? keyTimeout,
})

Returns the keys of this instance checking keyTimeout. See checkAllEntries.

Implementation

List<K> keysChecked({DateTime? now, Duration? keyTimeout}) {
  now ??= DateTime.now();
  keyTimeout ??= this.keyTimeout;

  var keys = _entries.keys.toList(growable: false);
  return keys
      .where((k) => !checkEntry(k, now: now, keyTimeout: keyTimeout))
      .toList();
}