NotificationAndroidCrontab.fromDate constructor
NotificationAndroidCrontab.fromDate({})
Initialize a notification crontab schedule based on a date reference
Implementation
NotificationAndroidCrontab.fromDate(
{required DateTime date,
int initialSecond = 0,
bool allowWhileIdle = false})
: super(
timeZone: date.isUtc
? LocalNotifications.utcTimeZoneIdentifier
: LocalNotifications.localTimeZoneIdentifier,
allowWhileIdle: allowWhileIdle,
repeats: false) {
_initialDateTime = date;
_crontabExpression = CronHelper().atDate(referenceDateTime: date);
}