MethodChannelDollarStarxpand class

An implementation of DollarStarxpandPlatform that uses method channels.

This class provides platform-specific implementations for interacting with Star Micronics printers, including connecting, disconnecting, printing, and discovering printers.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
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.
override
disconnectPrinter() Future<void>
Disconnects from the currently connected printer.
override
getPlatformVersion() Future<String?>
Retrieves the platform version from the native implementation.
override
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.
override
openCashDrawer(String identifier, String interfaceType) Future<bool>
Opens the cash drawer connected to the specified printer.
override
printReceipt(String identifier, String interfaceType, Map<String, dynamic> printData) Future<bool>
Prints a receipt on a specified printer using the provided print data.
override
printText(String text) Future<void>
Sends text to the connected printer for printing.
inherited
startDiscovery() Future<String?>
Starts the discovery process for available printers.
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

eventChannel → const EventChannel
The event channel used for receiving printer discovery events.