addUpdateDocument abstract method
This function is used to completely replace the data in a document with the provided object. If the document does not exist, this method will create a new document with the provided object. If the document already exists, it will overwrite the existing data with the new object.
Implementation
/// If the document does not exist, this method will create
/// a new document with the provided object.
/// If the document already exists, it will overwrite the
/// existing data with the new object.
Future addUpdateDocument(
FireStoreDoc obj,
/// This is the reference of a document
DocumentReference documentReference,
);