setStorageList function

Future<bool> setStorageList(
  1. String key, {
  2. required String listKey,
  3. required List list,
})

var models = await getStorageList(_orderNoKey, listKey: _orderNoForUserKey, onModels: (json) { return BaseKeyValue.fromJson(json); }); models.add(BaseKeyValue(key: "key", value: "${randomInt(100)}")); await setStorageList(_orderNoKey, listKey: _orderNoForUserKey, list: models);

Implementation

Future<bool> setStorageList(String key,
    {required String listKey, required List list}) async {
  return await setStorageMap(key, {listKey: list});
}