DiaryEntry constructor

DiaryEntry({
  1. required String id,
  2. required String title,
  3. required String description,
  4. required DateTime date,
  5. required double latitude,
  6. required double longitude,
  7. required String location,
  8. required List<String> photoUrls,
})

Creates a new instance of DiaryEntry.

All fields are required and should be properly initialized.

Implementation

DiaryEntry({
  required this.id,
  required this.title,
  required this.description,
  required this.date,
  required this.latitude,
  required this.longitude,
  required this.location,
  required this.photoUrls,
});