disconnect property

Future<bool> disconnect

Implementation

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