NotificationSchedule class abstract
Abstract base class for notification schedule configuration. Defines the common properties and methods for scheduling notifications.
Constructors
- NotificationSchedule({required String timeZone, bool allowWhileIdle = false, bool repeats = false, bool preciseAlarm = false, int delayTolerance = 600000})
- Constructs a NotificationSchedule with various scheduling options.
Properties
- allowWhileIdle ↔ bool
-
Allows the notification to be displayed even when the device is in low battery mode.
getter/setter pair
- delayTolerance ↔ int
-
Delay tolerance in milliseconds for scheduling the notification. Minimum tolerance is typically 600,000 ms (10 minutes).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- preciseAlarm ↔ bool
-
Requires precise timing for the notification schedule, especially important on devices with strict power-saving features.
getter/setter pair
- repeats ↔ bool
-
Indicates whether the notification should be delivered once (false) or rescheduled each time it's delivered (true).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeZone ↔ String
-
Full time zone identifier for scheduling the notification. Example: 'America/Sao_Paulo', 'America/New_York', 'Europe/Helsinki'.
getter/setter pair
Methods
-
fromMap(
Map< String, dynamic> mapData) → NotificationSchedule? -
Creates a NotificationSchedule instance from a map of data.
Returns null if invalid
mapData
is provided. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts the NotificationSchedule instance to a map.
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → void -
Validates
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited