copyWith method

PrCommand copyWith({
  1. String? deviceId,
  2. String? data,
  3. String? printerId,
})

Implementation

PrCommand copyWith({
  String? deviceId,
  String? data,
  String? printerId,
}) =>
    PrCommand(
      deviceId: deviceId ?? this.deviceId,
      data: data ?? this.data,
      printerId: printerId ?? this.printerId,
    );