cancelRequest method

Future cancelRequest(
  1. String id
)

Requests cancellation of a request sent by the client by id. This is provided on a best-effort basis and there is no guarantee the server will be able to cancel any specific request. The server will still always produce a response to the request even in the case of cancellation, but clients should discard any results of any cancelled request because they may be incomplete or inaccurate. This request always completes without error regardless of whether the request is successfully cancelled.

Implementation

Future cancelRequest(String id) => _call('server.cancelRequest', {'id': id});