setAddress method

void setAddress(
  1. String address,
  2. int id
)

set address connect to dapp

Implementation

void setAddress(String address, int id) async {
  address = address.toLowerCase();
  final script = "window.ethereum.setAddress('$address');";
  await evaluateJavascript(source: script);
  sendResults([address], id);
}