StarPrnt class

Class to handle printer communication

Constructors

StarPrnt()

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

checkStatus({required String portName, required String emulation}) Future
Check status of printer
getStatus({required String portName, required String emulation}) Future<PrinterResponseStatus>
Check status of printer. Have specify portName and emulation. Returns PrinterResponseStatus. Use StarMicronicsUtilities to find suitable emulations.
portDiscovery(StarPortType portType) Future<List<PortInfo>>
Scan for available printers. Have specify StarPortType of the printer
print({required String portName, required String emulation, required PrintCommands printCommands}) Future
sends commands to printer to run
sendCommands({required String portName, required String emulation, required PrintCommands printCommands}) Future<PrinterResponseStatus>
Sends PrintCommands to the printer. Have to specify portName and emulation. Returns PrinterResponseStatus