create method

  1. @override
T create([
  1. String? id
])
override

Create a new document.

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

Implementation

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