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