MethodChannelGetnetPos class

The MethodChannelGetnetPos class provides a platform-specific implementation of the GetnetPosPlatform interface using method channels.

This class communicates with the native platform code via a MethodChannel to handle print operations.

Example usage:

final methodChannelGetnetPos = MethodChannelGetnetPos();
final items = [
  ItemPrintModel.text(
    content: "TEXTO CENTRALIZADO",
    align: Align.center,
    fontFormat: FontFormat.medium,
  ),
];

final result = await methodChannelGetnetPos.print(items);
print(result); // "Printed successfully"
Inheritance

Constructors

MethodChannelGetnetPos()

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The MethodChannel used for communication with the native platform.
final
printInProgress bool
Tracks whether a print operation is currently in progress.
getter/setter pair
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
print(List<ItemPrintModel> items) Future<String?>
Sends a list of print instructions to the native platform via the method channel.
override
toString() String
A string representation of this object.
inherited

Operators

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