MethodChannelNyxPrinter class

A platform-specific implementation of NyxPrinterPlatform using method channels. This class communicates with the native platform to perform printing tasks.

Inheritance

Constructors

MethodChannelNyxPrinter()

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to communicate with the native platform for printer-related operations. It allows sending method calls and receiving results from the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getVersion() Future<int?>
Retrieves the version of the printer.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paperOut() Future<int?>
Invokes the 'paperOut' method on the platform's method channel to check paper status.
override
printBarcode(String text, int width, int height) Future<int?>
Prints a barcode with the provided parameters.
override
printBitmap(Uint8List bytes) Future<int?>
Prints an image (bitmap) provided as a byte array.
override
printQrCode(String text, int width, int height) Future<int?>
Prints a QR code with the provided parameters.
override
printText(String text, NyxTextFormat textFormat) Future<int?>
Prints the provided text with the given format.
override
toString() String
A string representation of this object.
inherited

Operators

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