copyWith method
Create a copy with updated fields
Implementation
Printer copyWith({
String? address,
String? name,
ConnectionType? connectionType,
bool? isConnected,
String? vendorId,
String? productId,
}) =>
Printer(
address: address ?? this.address,
name: name ?? this.name,
connectionType: connectionType ?? this.connectionType,
isConnected: isConnected ?? this.isConnected,
vendorId: vendorId ?? this.vendorId,
productId: productId ?? this.productId,
);