MethodChannelPda608Plugin class
An implementation of Pda608PluginPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- Pda608PluginPlatform
- MethodChannelPda608Plugin
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
-
close(
) → Future< void> -
Close the plugin (release resources)
override
-
getScanResults(
) → Stream< ScanResult> -
Stream of scan results
override
-
init(
) → Future< bool> -
Initialize the printer and scanner
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printBarcode(
{required String data, int width = 380, int height = 100, bool showText = true, int fontSize = 16, int align = 1, int paperWidth = 52, bool isLabel = false, bool tear = true}) → Future< bool> -
Print barcode
override
-
printImage(
{required Uint8List imageData, int align = 1, int paperWidth = 52, bool isLabel = false, bool tear = true}) → Future< bool> -
Print an image
override
-
printQrCode(
{required String data, int width = 200, int height = 200, bool showText = true, int fontSize = 16, int align = 1, int paperWidth = 52, bool isLabel = false, bool tear = true}) → Future< bool> -
Print QR code
override
-
printText(
{required String text, int size = 1, int align = 1, int paperWidth = 52, bool isLabel = false, bool tear = true}) → Future< bool> -
Print text
override
-
setLabelMode(
bool enable) → Future< void> -
Enable or disable label mode (for gap label paper)
override
-
startScan(
) → Future< void> -
Trigger barcode scanning
override
-
testScanResult(
) → Future< bool> -
For testing scan results
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited