copyWith method

Printer copyWith({
  1. String? address,
  2. String? name,
  3. ConnectionType? connectionType,
  4. bool? isConnected,
  5. String? vendorId,
  6. String? productId,
})

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,
    );