addEntry method
- DiaryEntry entry
Adds a diary entry to Firestore under the current user's collection.
Implementation
Future<void> addEntry(DiaryEntry entry) async {
await _entryCollection.doc(entry.id).set(entry.toMap());
}
Adds a diary entry to Firestore under the current user's collection.
Future<void> addEntry(DiaryEntry entry) async {
await _entryCollection.doc(entry.id).set(entry.toMap());
}