set method

Future<void> set(
  1. Map items
)

Sets multiple items. items An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.

Primitive values such as numbers will serialize as expected. Values with a typeof "object" and "function" will typically serialize to {}, with the exception of Array (serializes as expected), Date, and Regex (serialize using their String representation). returns Callback on success, or on failure (in which case runtime.lastError will be set).

Implementation

Future<void> set(Map items) async {
  await promiseToFuture<void>(_wrapped.set(items.jsify()!));
}