sendResult method

void sendResult(
  1. String result,
  2. int id
)

send result to dapp

Implementation

void sendResult(String result, int id) {
  final script = "window.ethereum.sendResponse($id, \"$result\")";
  evaluateJavascript(source: script);
}