update method
Method to update data in a specific document within the collection.
Parameters:
id
: The ID or path of the document to be updated.data
: The data to be updated in the document.
Example:
collectionRef.update('123', {'age': 32});
Implementation
void update(String id, Data data) => document(id).update(data);