setStorageList function
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});
}