switchNetwork method
Implementation
@override
Future<bool> switchNetwork({required String chainId}) async {
if (_serviceNotReady) {
throw Exception('Service is not ready');
}
//
await _awaitReadyness.future;
_switchNetworkCompleter = Completer<bool>();
await _switchNetwork(chainId);
return await _switchNetworkCompleter.future;
}