connectionState property
Stream<BluetoothConnectionState>
get
connectionState
Implementation
Stream<BluetoothConnectionState> get connectionState {
if (connectionType != ConnectionType.BLE) {
throw UnsupportedError('Only BLE printers are supported');
}
if (address == null) {
throw ArgumentError('Address is required for BLE printers');
}
return BluetoothDevice.fromId(address!).connectionState;
}