attachStorage method

Future<void> attachStorage(
  1. String key
)

Loads and auto-saves notes under key.

Implementation

Future<void> attachStorage(String key) async {
  if (_storageKey == key) return;
  _storageKey = key;
  await load();
}