deleteCachedContent method

  1. @override
Future<void> deleteCachedContent(
  1. DeleteCachedContentRequest request
)
override

Deletes CachedContent resource.

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

@override
Future<void> deleteCachedContent(DeleteCachedContentRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_deleteCachedContent case final deleteCachedContent?) {
    return deleteCachedContent(request);
  }
  throw UnsupportedError('deleteCachedContent');
}