PrintBluetoothThermal class

Constructors

PrintBluetoothThermal()

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

batteryLevel Future<int>
get the percentage of the battery returns int
no setter
bluetoothEnabled Future<bool>
returns true if bluetooth is on
no setter
connectionStatus Future<bool>
no setter
disconnect Future<bool>
disconnect print
no setter
isPermissionBluetoothGranted Future<bool>
Check if it is allowed on Android 12 access to Bluetooth onwards
no setter
pairedBluetooths Future<List<BluetoothInfo>>
Android: Return all paired bluetooth on the device IOS: Return nearby bluetooths
no setter
platformVersion Future<String>
gets the android version where it is running, returns String
no setter

Static Methods

connect({required String macPrinterAddress}) Future<bool>
send connection to ticket printer and wait true if it was successful, the mac address of the printer's bluetooth must be sent
writeBytes(List<int> bytes) Future<bool>
send bytes to print, esc_pos_utils_plus package must be used, returns true if successful
writeString({required PrintTextSize printText}) Future<bool>
Strings are sent to be printed by the PrintTextSize class can print from size 1 (50%) to size 5 (400%)