sendError method

void sendError(
  1. String error,
  2. int id
)

send error to dapp

Implementation

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