notifyConnectionStateChanged method
Notifies the VPN session state to the platform. This will succeed only when the VPN session is owned by the extension. |state|: The VPN session state of the VPN client. |callback|: Called when the notification is complete or if there is an error.
Implementation
Future<void> notifyConnectionStateChanged(VpnConnectionState state) async {
await promiseToFuture<void>(
$js.chrome.vpnProvider.notifyConnectionStateChanged(state.toJS));
}