save static method

Future<void> save(
  1. String id
)

Adds a consumable with ID id to the store.

The consumable is only added after the returned Future is complete.

Implementation

static Future<void> save(String id) {
  _writes = _writes.then((void _) => _doSave(id));
  return _writes;
}