PrinterStatus class Null safety

打印机状态

Constructors

PrinterStatus(int status)

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status int
打印机状态(可能多种状态并存,按位或运算获取每种状态)
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

statusNoCarbon → const int
无碳带(仅支持tspl)
0x01 << 4
statusNoPaper → const int
缺纸
0x01 << 2
statusOk → const int
正常
0
statusOpenCover → const int
开盖
0x01 << 1
statusPrinting → const int
正在打印(仅支持tspl、cpcl)
0x01 << 6
statusPrintPause → const int
暂停打印(仅支持tspl)
0x01 << 5
statusUnknownError → const int
打印机错误
0x01 << 15
statusWillNoPaper → const int
纸将尽(仅支持tspl)
0x01 << 3