getWhere method
Implementation
List<T>? getWhere(bool Function(CacheItem<T>) function) {
if (_cache == null) {
return null;
}
final items = _cache!.where(function);
final List<T> list = [];
for (final item in items) {
if (_isItemOutdated(item)) {
removeItem(item);
} else {
list.add(item.item);
}
}
return list;
}