updateField abstract method

Future updateField(
  1. Map<String, Object?> obj,
  2. DocumentReference<Object?> docRef
)

Method is used to update specific fields in a document with a JavaScript object The object obj contains key-value pairs where the keys represent the field names to update and the values represent the new values to set for those fields

Implementation

Future updateField(Map<String, Object?> obj, DocumentReference docRef);