ClothingItem class
衣物单品模型
Constructors
-
ClothingItem({required String id, required String name, required String category, required String style, required List<
String> colors, String? imageUrl, String? imagePath, required String source, required DateTime addedDate, Map<String, dynamic> ? metadata, int wearCount = 0, DateTime? lastWornDate}) -
ClothingItem.fromJson(Map<
String, dynamic> json) -
factory
Properties
- addedDate → DateTime
-
final
- category → String
-
final
-
colors
→ List<
String> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- imagePath → String?
-
final
- imageUrl → String?
-
final
- lastWornDate → DateTime?
-
final
-
metadata
→ Map<
String, dynamic> ? -
final
- name → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
final
- style → String
-
final
- wearCount → int
-
final
Methods
-
copyWith(
{String? name, String? category, String? style, List< String> ? colors, String? imageUrl, String? imagePath, String? source, int? wearCount, DateTime? lastWornDate}) → ClothingItem -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited