RpcProvider class
Rpc Provider
Constructors
- RpcProvider(WebViewRelayer _overlay, {String rpcUrl = ""})
Properties
Methods
-
call(
String function, [List? params]) → Future< RPCResponse> -
Performs an RPC request, asking the server to execute the function with
the given name and the associated parameters, which need to be encodable
with the json class of dart:convert.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
override
-
send(
{required MagicRPCRequest request, required Completer< JavaScriptMessage> completer}) → Future<JavaScriptMessage> - Sends message to relayer
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited