getItemsByStyle static method

Future<List<ClothingItem>> getItemsByStyle(
  1. String style
)

按风格获取衣物

Implementation

static Future<List<ClothingItem>> getItemsByStyle(String style) async {
  final items = await getAllClothingItems();
  return items.where((item) => item.style == style).toList();
}