PrinterStatus constructor
PrinterStatus({
- Uint8List? statusBytes,
- ErrorCode errorCode = ErrorCode.ERROR_NONE,
- int labelId = -1,
- int labelType = -1,
- BatteryTernary isACConnected = BatteryTernary.Unknown,
- BatteryTernary isBatteryMounted = BatteryTernary.Unknown,
- int batteryLevel = -1,
- int batteryResidualQuantityLevel = -1,
- int maxOfBatteryResidualQuantityLevel = -1,
Implementation
PrinterStatus(
{Uint8List? statusBytes,
this.errorCode = ErrorCode.ERROR_NONE,
this.labelId = -1,
this.labelType = -1,
this.isACConnected = BatteryTernary.Unknown,
this.isBatteryMounted = BatteryTernary.Unknown,
this.batteryLevel = -1,
this.batteryResidualQuantityLevel = -1,
this.maxOfBatteryResidualQuantityLevel = -1})
: this._statusBytes =
statusBytes == null ? new Uint8List(32) : statusBytes;