NotificationSchedule constructor
NotificationSchedule({})
Constructs a NotificationSchedule with various scheduling options.
timeZone: Specifies the time zone reference for the schedule. allowWhileIdle: Determines if the notification should be sent even in critical device situations like low battery. repeats: Specifies whether the notification should repeat. preciseAlarm: Requires precise scheduling, which may consume more battery. Needs explicit permission on Android 12+. delayTolerance: Specifies the delay tolerance in milliseconds for scheduling notifications.
Implementation
NotificationSchedule(
{required this.timeZone,
this.allowWhileIdle = false,
this.repeats = false,
this.preciseAlarm = false,
this.delayTolerance = 600000});