copyWith method

Connector copyWith({
  1. int? power,
  2. int? price,
  3. StatusType? status,
  4. String? type,
})

Implementation

Connector copyWith({
  int? power,
  int? price,
  StatusType? status,
  String? type
}) {
  return Connector(
    power: power ?? this.power,
    price: price ?? this.price,
    status: status ?? this.status,
    type: type ?? this.type
  );
}