setParameters method
Sets the parameters for the VPN session. This should be called
immediately after "connected"
is received from the platform.
This will succeed only when the VPN session is owned by the extension.
|parameters|: The parameters for the VPN session.
|callback|: Called when the parameters are set or if there is an error.
Implementation
Future<void> setParameters(Parameters parameters) async {
await promiseToFuture<void>(
$js.chrome.vpnProvider.setParameters(parameters.toJS));
}