copyWith method

ZebraPrinterStatus copyWith({
  1. bool? isPaused,
  2. int? numberOfFormatsInReceiveBuffer,
  3. bool? isReadyToPrint,
  4. bool? isPaperOut,
  5. bool? isPartialFormatInProgress,
  6. bool? isReceiveBufferFull,
  7. int? labelLengthInDots,
  8. bool? isRibbonOut,
  9. bool? isHeadTooHot,
  10. int? labelsRemainingInBatch,
  11. bool? isHeadOpen,
  12. bool? isHeadCold,
  13. int? printMode,
})

Implementation

ZebraPrinterStatus copyWith({
  bool? isPaused,
  int? numberOfFormatsInReceiveBuffer,
  bool? isReadyToPrint,
  bool? isPaperOut,
  bool? isPartialFormatInProgress,
  bool? isReceiveBufferFull,
  int? labelLengthInDots,
  bool? isRibbonOut,
  bool? isHeadTooHot,
  int? labelsRemainingInBatch,
  bool? isHeadOpen,
  bool? isHeadCold,
  int? printMode,
}) =>
    ZebraPrinterStatus(
      isPaused: isPaused ?? this.isPaused,
      numberOfFormatsInReceiveBuffer: numberOfFormatsInReceiveBuffer ?? this.numberOfFormatsInReceiveBuffer,
      isReadyToPrint: isReadyToPrint ?? this.isReadyToPrint,
      isPaperOut: isPaperOut ?? this.isPaperOut,
      isPartialFormatInProgress: isPartialFormatInProgress ?? this.isPartialFormatInProgress,
      isReceiveBufferFull: isReceiveBufferFull ?? this.isReceiveBufferFull,
      labelLengthInDots: labelLengthInDots ?? this.labelLengthInDots,
      isRibbonOut: isRibbonOut ?? this.isRibbonOut,
      isHeadTooHot: isHeadTooHot ?? this.isHeadTooHot,
      labelsRemainingInBatch: labelsRemainingInBatch ?? this.labelsRemainingInBatch,
      isHeadOpen: isHeadOpen ?? this.isHeadOpen,
      isHeadCold: isHeadCold ?? this.isHeadCold,

      printMode: printMode ?? this.printMode,
    );