setStore method

Future setStore(
  1. String key,
  2. dynamic value
)

设置缓存

Implementation

Future<dynamic> setStore(String key, dynamic value) async {
  if (_store == null) {
    _store = await CloudBaseStore().init();
  }

  if (key == this.loginTypeKey) {
    value = (value as CloudBaseAuthType).index;
  }

  return _store!.set(key, value);
}