create method

T create([
  1. String? id
])

Create a new document.

id is the ID of the document. If it is blank, uuid is used.

Implementation

T create([String? id]) =>
    createDocument("${path.trimQuery()}/${id.isEmpty ? uuid : id}");