initClient method

void initClient(
  1. String uri,
  2. String address,
  3. int chainId, {
  4. Map? cachedSession,
})

Implementation

void initClient(
  String uri,
  String address,
  int chainId, {
  Map? cachedSession,
}) {
  if (cachedSession != null) {
    serviceRoot.webView!.evalJavascript(
        'walletConnect.reConnectSession(${jsonEncode(cachedSession)})');
  } else {
    serviceRoot.webView!.evalJavascript(
        'walletConnect.initConnect("$uri", "$address", $chainId)');
  }
}