getAll method
Gets all cached items
Implementation
List<T>? getAll() {
if (_cache == null) {
return null;
}
final List<T> list = [];
for (int index = _cache!.length - 1; index >= 0; index--) {
final item = _cache![index];
if (_isItemOutdated(item)) {
removeItem(item);
} else {
list.add(item.item);
}
}
return list;
}