MethodChannelPosPrinter class
An implementation of PosPrinterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- PosPrinterPlatform
- MethodChannelPosPrinter
Constructors
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
-
cancelDiscovery(
) → Future< void> -
override
-
connect(
DeviceData device) → Future< bool> -
override
-
disconnect(
) → Future< void> -
override
-
feedAndCutPaper(
) → Future< bool> -
override
-
getBatteryLevel(
) → Future< int?> -
override
-
getConnectionStatus(
) → Stream< ConnectionStatus?> -
inherited
-
getDevices(
) → Stream< List< DeviceData> > -
inherited
-
getPrinterEvents(
) → Stream< PrinterEvent?> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
performPrint(
String filePath, {required int width, required int height}) → Future< PrintResult> -
override
-
printBitmap(
String filePath, {required int width, required int height}) → Future< PrintResult> -
override
-
queryConnectionStatus(
) → Future< void> -
override
-
startDiscovery(
) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited