currentProxy method

  1. @override
Future<ProxyInfo?> currentProxy()
override

Returns the ProxyInfo of the currently running proxy, or null if none is running.

Implementation

@override
Future<ProxyInfo?> currentProxy() async {
  final address = await methodChannel.invokeMethod<String?>('currentProxy');
  if (address == null) return null;
  return ProxyInfo.fromAddress(address);
}