establishVpn method

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

Implementation

@override
Future<bool> establishVpn() async {
  try {
    final bool result = await methodChannel.invokeMethod('establishVpn');
    return result;
  } on PlatformException catch (e) {
    throw "Error establishing VPN: ${e.message}";
  }
}