setListDefault static method
Implementation
static bool setListDefault(List? items, String key, bool defaultValue) {
if (items == null) return defaultValue;
Map? item =
items.firstWhere((elem) => elem['name'] == key, orElse: () => null);
if (item != null) {
return item['hide'] == 0;
}
return defaultValue;
}