getConnectionState static method

Future<ConnectionState> getConnectionState()

Get the current connection state

Implementation

static Future<ConnectionState> getConnectionState() async {
  return BluetoothConnectionPluginPlatform.instance.getBleConnectionState();
}