prepare method

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

Implementation

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