BluetoothPrint class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable Future<bool>
no setter
isConnected Future<bool?>
no setter
isOn Future<bool>
no setter
isScanning Stream<bool>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanResults Stream<List<BluetoothDevice>>
no setter
state Stream<int>
Gets the current state of the Bluetooth module
no setter

Methods

connect(BluetoothDevice device) Future
destroy() Future
disconnect() Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printLabel(Map<String, dynamic> config, List<LineText> data) Future
printReceipt(Map<String, dynamic> config, List<LineText> data) Future
printTest() Future
scan({Duration? timeout}) Stream<BluetoothDevice>
Starts a scan for Bluetooth Low Energy devices Timeout closes the stream after a specified Duration
startScan({Duration? timeout}) Future
stopScan() Future
Stops a scan for Bluetooth Low Energy devices
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance BluetoothPrint
no setter

Constants

CONNECTED → const int
DISCONNECTED → const int
NAMESPACE → const String