getCurrentConnectionState method
Returns the current connection state for the Bluetooth device with the specified address.
Implementation
@override
Future<BleConnectionState> getCurrentConnectionState(String deviceAddress) async {
return _connectionStates[deviceAddress] ?? BleConnectionState.disconnected;
}