setAccountCache method

Future<void> setAccountCache(
  1. String accPubKey,
  2. String key,
  3. Object value
)

Implementation

Future<void> setAccountCache(
    String accPubKey, String key, Object value) async {
  Map? data = await (getObject(key) as FutureOr<Map<dynamic, dynamic>?>);
  if (data == null) {
    data = {};
  }
  data[accPubKey] = value;
  setObject(key, data);
}