patch property

Command<Map<String, dynamic>, void> patch
latefinal

Partially updates specific fields on the document.

Only the keys present in the map are modified; all other fields remain unchanged. Throws StateError if not authenticated.

Implementation

late final patch = Command.createAsyncNoResult<Map<String, dynamic>>(
  (map) => _docOrThrow().update(map),
);