storesList method
Implementation
List<Store> storesList({List<String>? pick, List<String>? omit}) {
if (pick != null && omit != null) throw ArgumentError("pick and omit cannot be used together");
if (pick != null) {
return _stores.keys.where((e) => pick.contains(e)).map((e) => _stores[e]!).toList();
}
if (omit != null) {
return _stores.keys.where((e) => !omit.contains(e)).map((e) => _stores[e]!).toList();
}
return _stores.values.toList();
}