isUseVpn method

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

isUseVpn This method will to native to checking the device is using VPN or not. This method return bool

Implementation

@override
Future<bool> isUseVpn() async {
  final isUseVpn = await methodChannel.invokeMethod<bool>('isUseVpn');
  return isUseVpn ?? true;
}