copy method

SelectionElementModel copy({
  1. String? id,
  2. String? name,
  3. int? index,
  4. int? price,
})

Implementation

SelectionElementModel copy({
  String? id,
  String? name,
  int? index,
  int? price,
}) {
  return SelectionElementModel(
    id: id ?? this.id,
    name: name ?? this.name,
    price: price ?? this.price,
  );
}