getAll method

Future<Map<String, T?>> getAll(
  1. Set<String> keys
)

Gets the stash values for the specified set of keys

  • keys: the set of keys to get

Returns a map of key / value pairs

Implementation

Future<Map<String, T?>> getAll(Set<String> keys) {
  return Future.wait(keys.map((key) {
    return get(key).then((value) => MapEntry(key, value));
  })).then((value) => Map.fromEntries(value));
}