putAll method

Future<void> putAll(
  1. Map<String, T> map
)

Add / Replace the stash values with the specified map of entries.

  • map: the map of entries to add / replace

Implementation

Future<void> putAll(Map<String, T> map) {
  return Future.wait(map.entries.map((entry) => put(entry.key, entry.value)))
      .then((value) => null);
}