call method

Future<O> call(
  1. RpcClient client,
  2. I data, {
  3. Future<void>? cancelled,
})

Invokes this function through client.

Completing cancelled stops the request with RpcCancelledException.

Implementation

Future<O> call(RpcClient client, I data, {Future<void>? cancelled}) =>
    client.call(this, data, cancelled: cancelled);