PrintJobResolver class
Turns PrintJobBody (DB JSON) into PrintJobSpec for the current platform.
Same JSON for all POS users:
- Web → Print Hub (PrinterJobConfig.hubUrl) + USB name when set, else IP/BT via hub
- Windows / Android / iOS → direct TCP when PrinterJobConfig.ip is set, else USB/BT
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
resolveTarget(
PrinterJobConfig printer, {required bool isWeb}) → PrintTarget - Picks connection method from filled printer fields + platform.
-
toSpec(
PrintJobBody body) → PrintJobSpec -
toSpecForPlatform(
PrintJobBody body, {required bool isWeb}) → PrintJobSpec -
Visible for tests —
isWebselects web vs native resolution rules.