cancelOperation method

Future<void> cancelOperation(
  1. CancelOperationRequest request
)

Provides the Operations service functionality in this service.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

Future<void> cancelOperation(CancelOperationRequest request) async {
  final url = Uri.https(_host, '/ui/${request.name}:cancel');
  await _client.post(url);
}