disconnect method

  1. @override
Future<bool> disconnect()
override

Implementation

@override
Future<bool> disconnect() async {
  try {
    bool status = await methodChannelCaller.invokeMethod("disconnect");
    return status;
  } on PlatformException catch (e) {
    debugPrint(e.toString());
    rethrow;
  }
}