copy method

  1. @override
SelectionItemOptionModel copy({
  1. String? id,
  2. String? itemId,
  3. String? label,
  4. Iterable<SelectionElementModel>? selections,
  5. DateTime? updatedAt,
  6. DateTime? createdAt,
})
override

Implementation

@override
SelectionItemOptionModel copy({
  String? id,
  String? itemId,
  String? label,
  Iterable<SelectionElementModel>? selections,
  DateTime? updatedAt,
  DateTime? createdAt,
}) {
  return SelectionItemOptionModel(
    id: id ?? this.id,
    itemId: itemId ?? this.itemId,
    label: label ?? this.label,
    updatedAt: updatedAt ?? this.updatedAt,
    createdAt: createdAt ?? this.createdAt,
    selections: selections ?? this.selections,
  );
}