initStorage static method

Future<void> initStorage()

初始化 Obs 响应式变量的本地存储对象

Implementation

static Future<void> initStorage() async {
  if (_localStorage != null) return;
  _localStorage = await el.storage.createStorage('el_obs_storage');
  _expireLocalStorage = await el.storage.createStorage(
    'el_obs_expire_storage',
  );
  expireLocalStorage.clearExpire();
}