DollarStarxpandPlatform class abstract

The interface that platform-specific implementations of DollarStarxpand must extend.

This abstract class defines the contract for all platform-specific implementations. It includes methods for interacting with Star Micronics printers, such as connecting, disconnecting, printing, and handling discovery events.

Inheritance
  • Object
  • PlatformInterface
  • DollarStarxpandPlatform
Implementers

Constructors

DollarStarxpandPlatform()
Constructs a DollarStarxpandPlatform.

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

connectPrinter(String identifier, String interfaceType) Future<void>
Connects to a Star Micronics printer using the provided identifier and interface type.
disconnectPrinter() Future<void>
Disconnects from the currently connected printer.
getPlatformVersion() Future<String?>
Retrieves the platform version from the native implementation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPrinterDiscovered(dynamic callback(String identifier, String interfaceType, String model)) → void
Registers a callback function to listen for discovered printers during the discovery process.
openCashDrawer(String identifier, String interfaceType) Future<void>
Opens the cash drawer connected to the specified printer.
printReceipt(String identifier, String interfaceType, Map<String, dynamic> printData) Future<void>
Prints a receipt on a specified printer using the provided print data.
printText(String text) Future<void>
Sends text to the connected printer for printing.
startDiscovery() Future<void>
Starts the discovery process for available printers.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance DollarStarxpandPlatform
The default instance of DollarStarxpandPlatform to use.
getter/setter pair