load method

Future<void> load()

Loads saved notes.

Implementation

Future<void> load() async {
  final String? key = _storageKey;
  if (key == null) return;
  try {
    final String? raw = ULocalStorage.getString(key);
    if (raw == null || raw.isEmpty) return;
    import(raw, merge: !isEmpty, notify: false);
    notifyListeners();
  } on Object {
    return;
  }
}