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