shouldSendNotification method

bool shouldSendNotification({
  1. bool? isLoggedIn,
  2. bool isNotificationEnabled = true,
  3. bool? isNotificationScheduled,
})

Implementation

bool shouldSendNotification({
  bool? isLoggedIn,
  bool isNotificationEnabled = true,
  bool? isNotificationScheduled,
}) {
  saveNotificationStatus(isNotificationEnabled);
  return isNotificationEnabled; // Example logic: Only checks if notifications are enabled.
}