WardrobeService class

虚拟衣橱服务

Constructors

WardrobeService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

addClothingItem(ClothingItem item) Future<void>
添加衣物
addClothingItems(List<ClothingItem> newItems) Future<void>
批量添加衣物
addDailyOutfit(DailyOutfit outfit) Future<void>
添加每日搭配
clearWardrobe() Future<void>
清空衣橱
deleteClothingItem(String itemId) Future<void>
删除衣物
deleteOutfit(String outfitId) Future<void>
删除搭配
generateWardrobePrompt() Future<String>
生成AI衣橱提示词
getAllClothingItems() Future<List<ClothingItem>>
获取所有衣物
getAllOutfits() Future<List<DailyOutfit>>
获取所有搭配
getItemsByCategory(String category) Future<List<ClothingItem>>
按分类获取衣物
getItemsBySource(String source) Future<List<ClothingItem>>
按来源获取衣物
getItemsByStyle(String style) Future<List<ClothingItem>>
按风格获取衣物
getOutfitByDate(DateTime date) Future<DailyOutfit?>
获取指定日期的搭配
getWardrobeStats() Future<Map<String, dynamic>>
获取衣橱统计信息
getWeeklyOutfits() Future<List<DailyOutfit>>
获取本周搭配
recordWearing(String itemId) Future<void>
记录穿着
updateClothingItem(ClothingItem item) Future<void>
更新衣物