copyWith method

DeviceInfo copyWith({
  1. int? deviceId,
  2. String? version,
  3. String? deviceName,
  4. String? manufacturerName,
  5. String? productName,
  6. int? productId,
  7. int? vendorId,
  8. String? serialNumber,
})

Implementation

DeviceInfo copyWith({
  int? deviceId,
  String? version,
  String? deviceName,
  String? manufacturerName,
  String? productName,
  int? productId,
  int? vendorId,
  String? serialNumber,
}) {
  return DeviceInfo(
    deviceId: deviceId ?? this.deviceId,
    version: version ?? this.version,
    deviceName: deviceName ?? this.deviceName,
    manufacturerName: manufacturerName ?? this.manufacturerName,
    productName: productName ?? this.productName,
    productId: productId ?? this.productId,
    vendorId: vendorId ?? this.vendorId,
    serialNumber: serialNumber ?? this.serialNumber,
  );
}