PrinterProvider enum

A receipt printer this plugin can drive.

An enum rather than a bool so a second device is a new case here and a new backend natively, not a second set of methods. The name crosses the channel and the native side resolves it to a device.

The device is auto-detected — HaloSdkUi.getPrinter resolves which make it actually is, and HaloSdkUi.print binds it on first use. A brand ships one app to an estate that may be MobiPOS on one device and Zebra on the next, and the app uses whatever it is installed on.

Inheritance
Available extensions

Values

mobiPos → const PrinterProvider

The MobiPOS MP5 device's built-in thermal printer. Auto-detected.

zebra → const PrinterProvider

A Zebra Bluetooth printer (the ZQ620 and its kin). Not built-in, so it is found and chosen rather than auto-detected: HaloSdkUi.scanForPrinters lists the reachable ones and HaloSdkUi.selectPrinter picks one.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<PrinterProvider>
A constant List of the values in this enum, in order of their declaration.