NotificationAndroidCrontab.minutely constructor
NotificationAndroidCrontab.minutely({})
Initializes a notification crontab schedule to be triggered every minute at a specific second.
referenceDateTime
: The second at which the notification should be scheduled each minute.
allowWhileIdle: Allows the notification to display even when the device is in low battery mode.
Implementation
NotificationAndroidCrontab.minutely(
{required DateTime referenceDateTime, super.allowWhileIdle})
: super(
timeZone: referenceDateTime.isUtc
? AwesomeNotifications.utcTimeZoneIdentifier
: AwesomeNotifications.localTimeZoneIdentifier,
repeats: false) {
_crontabExpression =
CronHelper().minutely(initialSecond: referenceDateTime.second);
}