getItemsBySource static method

Future<List<ClothingItem>> getItemsBySource(
  1. String source
)

按来源获取衣物

Implementation

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