Nf5503PrintEvent class
打印 SDK 通过 EventChannel 推送的事件。
Constructors
- Nf5503PrintEvent({required Nf5503PrintEventType type, int? state, String? version})
-
创建打印事件对象。
const
-
Nf5503PrintEvent.fromMap(Map<
Object?, Object?> map) -
从原生 EventChannel 返回的 Map 中解析打印事件。
factory
Properties
- errorCode → Nf5503PrintErrorCode?
-
将 state 转换为可读错误码,无法识别时返回 null。
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSuccess → bool
-
当前状态是否表示打印成功。
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → int?
-
打印状态或错误码,版本事件通常为空。
final
- type → Nf5503PrintEventType
-
事件类型。
final
- version → String?
-
打印机版本号,仅版本事件有值。
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited