updateDocument method Null safety

Future<Map<String, dynamic>> updateDocument(
  1. String documentId,
  2. Map<String, dynamic> params
)

Update document.

Returns a Map containing the updated document information from the params to update to the document with documentId.

Implementation

Future<Map<String, dynamic>> updateDocument(
    String documentId, Map<String, dynamic> params) {
  return request(HTTPMethod.put, 'documents/$documentId', body: params);
}