update method Null safety

Future<void> update(
  1. Map<String, Object?> data
)

Updates data on the document. Data will be merged with any existing document data.

If no document exists yet, the update will fail.

Implementation

Future<void> update(Map<String, Object?> data);