PrintJobResolver class

Turns PrintJobBody (DB JSON) into PrintJobSpec for the current platform.

Same JSON for all POS users:

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 — isWeb selects web vs native resolution rules.