GetnetPos class

The GetnetPos class provides a high-level interface for interacting with the Getnet POS functionality.

This class delegates platform-specific operations to the appropriate platform interface implementation (GetnetPosPlatform).

Example usage:

final getnetPos = GetnetPos();
final items = [
  ItemPrintModel.text(
    content: "TEXTO CENTRALIZADO",
    align: Align.center,
    fontFormat: FontFormat.medium,
  ),
  ItemPrintModel.qrcode(
    content: "https://example.com",
    align: Align.center,
  ),
];

final result = await getnetPos.print(items);
print(result); // Prints: "Printed successfully" or an error message

Constructors

GetnetPos.new()

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
print(List<ItemPrintModel> items) Future<String?>
Sends a list of print instructions to the POS device for processing.
toString() String
A string representation of this object.
inherited

Operators

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