copy method

ItemOptionModel copy({
  1. String? id,
  2. String? label,
  3. String? itemId,
  4. DateTime? updatedAt,
  5. DateTime? createdAt,
})

Implementation

ItemOptionModel copy({
  String? id,
  String? label,
  String? itemId,
  DateTime? updatedAt,
  DateTime? createdAt,
}) {
  return ItemOptionModel(
    id: id ?? this.id,
    itemId: itemId ?? this.itemId,
    label: label ?? this.label,
    updatedAt: updatedAt ?? this.updatedAt,
    createdAt: createdAt ?? this.createdAt,
  );
}