addEntry method

Future<void> addEntry(
  1. 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());
}