switchNetwork method

  1. @override
Future<void> switchNetwork({
  1. required String chainId,
})
override

Implementation

@override
Future<void> switchNetwork({required String chainId}) async {
  if (!isEnabled.value || !isReady.value) return;
  final message = SwitchNetwork(chainId: chainId).toString();
  await _webViewController.runJavaScript('sendW3Message($message)');
}