call abstract method

Future<RPCResponse> call(
  1. String function, [
  2. List? params
])

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.

When the request is successful, an RPCResponse with the request id and the data from the server will be returned. If not, an RPCError will be thrown. Other errors might be thrown if an IO-Error occurs.

Implementation

Future<RPCResponse> call(String function, [List<dynamic>? params]);