copyWith method
Creates a copy of PrinterResponseStatus but with given field replace with new values
Implementation
PrinterResponseStatus copyWith({
bool? offline,
bool? coverOpen,
bool? cutterError,
bool? receiptPaperEmpty,
String? errorMessage,
bool? isSuccess,
bool? overTemp,
String? infoMessage,
String? modelName,
String? firmwareVersion,
}) {
return PrinterResponseStatus(
offline: offline ?? this.offline,
coverOpen: coverOpen ?? this.coverOpen,
cutterError: cutterError ?? this.cutterError,
receiptPaperEmpty: receiptPaperEmpty ?? this.receiptPaperEmpty,
errorMessage: errorMessage ?? this.errorMessage,
isSuccess: isSuccess ?? this.isSuccess,
overTemp: overTemp ?? this.overTemp,
infoMessage: infoMessage ?? this.infoMessage,
modelName: modelName ?? this.modelName,
firmwareVersion: firmwareVersion ?? this.firmwareVersion,
);
}