connectionStatus property

Future<String?> get connectionStatus

Get bluetooth device connection status

Implementation

static Future<String?> get connectionStatus async {
  try {
    final String? result = await _channel.invokeMethod('connectionStatus');
    return result;
  } on PlatformException catch (e) {
    print("Failed to write bytes: '${e.message}'.");
    return "false";
  }
}