copyWith method

UsbDevice copyWith({
  1. int? vendorId,
  2. int? productId,
  3. String? manufacturer,
})

Implementation

UsbDevice copyWith({
  int? vendorId,
  int? productId,
  String? manufacturer,
}) {
  return UsbDevice(
    vendorId: vendorId ?? this.vendorId,
    productId: productId ?? this.productId,
    manufacturer: manufacturer ?? this.manufacturer,
  );
}