DiaryScreen constructor

const DiaryScreen({
  1. Key? key,
  2. required dynamic switchToPreview(),
  3. required dynamic switchToAddDiaryPage(),
  4. required dynamic switchToMapPage(),
  5. required dynamic switchToHome(),
})

Creates a DiaryScreen with navigation callbacks.

The switchToPreview, switchToAddDiaryPage, switchToMapPage, and switchToHome parameters are required and define the behavior of the corresponding action buttons and icons.

Implementation

const DiaryScreen({
  super.key,
  required this.switchToPreview,
  required this.switchToAddDiaryPage,
  required this.switchToMapPage,
  required this.switchToHome,
});