getMany method

  1. @override
Future<Map<String, AtNotification>> getMany(
  1. List<String> keys
)
override

Bulk fetch — returns the values for every key in keys that is currently present. Keys that are absent are NOT included in the returned map.

Implementation

@override
Future<Map<String, AtNotification>> getMany(List<String> keys) async {
  final result = <String, AtNotification>{};
  for (final k in keys) {
    final n = await get(k);
    if (n != null) result[k] = n;
  }
  return result;
}