updateDocument method

  1. @override
Future<Document> updateDocument(
  1. UpdateDocumentRequest request
)
override

Updates a Document.

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<Document> updateDocument(UpdateDocumentRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_updateDocument case final updateDocument?) {
    return updateDocument(request);
  }
  throw UnsupportedError('updateDocument');
}