set method
Writes to the document referred to by this DocumentReference.
If the document does not yet exist, it will be created.
If merge is true, the provided data will be merged into an existing document instead of overwriting.
Implementation
Future<void> set(D data, [SetOptions? options]) {
return raw.set(
_firestore._serializers.serialize(data, specifiedType: FullType(D))
as Map<String, dynamic>,
options,
);
}