set method
Method to set data in the document.
Parameters:
data
: The data to be set in the document.
Example:
documentRef.set({'name': 'John', 'age': 30});
Implementation
void set(Data data) => database._w(key, data);
Method to set data in the document.
Parameters:
data
: The data to be set in the document.Example:
documentRef.set({'name': 'John', 'age': 30});
void set(Data data) => database._w(key, data);