openVPNSettings static method

Future<void> openVPNSettings({
  1. bool asAnotherTask = false,
  2. Function? callback,
})

Future async method call to open VPN settings.

Implementation

static Future<void> openVPNSettings(
    {bool asAnotherTask = false, Function? callback}) async {
  await _channel.invokeMethod('vpn', {
    'asAnotherTask': asAnotherTask,
  });
  if (callback != null) handleCallback(callback);
}