PrinterStatus constructor

PrinterStatus({
  1. Uint8List? statusBytes,
  2. ErrorCode errorCode = ErrorCode.ERROR_NONE,
  3. int labelId = -1,
  4. int labelType = -1,
  5. BatteryTernary isACConnected = BatteryTernary.Unknown,
  6. BatteryTernary isBatteryMounted = BatteryTernary.Unknown,
  7. int batteryLevel = -1,
  8. int batteryResidualQuantityLevel = -1,
  9. 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;