NotificationAndroidCrontab.weekendDay constructor
NotificationAndroidCrontab.weekendDay({})
Initializes a notification crontab schedule to be triggered on weekend days (Saturday and Sunday) at a specific time.
referenceDateTime
: The time at which the notification should be scheduled on weekend days.
allowWhileIdle: Allows the notification to display even when the device is in low battery mode.
Implementation
NotificationAndroidCrontab.weekendDay(
{required DateTime referenceDateTime, super.allowWhileIdle})
: super(
timeZone: referenceDateTime.isUtc
? AwesomeNotifications.utcTimeZoneIdentifier
: AwesomeNotifications.localTimeZoneIdentifier,
repeats: false) {
_crontabExpression =
CronHelper().weekendDay(referenceDateTime: referenceDateTime);
}