load method

Future<void> load()

Implementation

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