GetnetPosPlatform class abstract
The GetnetPosPlatform class defines the platform interface for interacting
with the Getnet POS functionality.
This is an abstract class that serves as the base for platform-specific
implementations, such as MethodChannelGetnetPos.
The default instance is set to MethodChannelGetnetPos, but it can be
overridden for testing or to provide custom implementations.
Example usage:
// Use the default instance
final result = await GetnetPosPlatform.instance.print(items);
// Override with a mock implementation for testing
GetnetPosPlatform.instance = MockGetnetPosPlatform();
- Implementers
Constructors
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 platform-specific implementation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ GetnetPosPlatform
-
Gets the current platform-specific implementation of
GetnetPosPlatform.getter/setter pair