updateDocument method

Future<void> updateDocument({
  1. String? id,
  2. required Map<String, dynamic> data,
})

Implementation

Future<void> updateDocument(
    {String? id, required Map<String, dynamic> data}) {
  return ref.doc(id).set(
        data,
        mergeOption,
      );
}