NotificationInterval class

Represents a notification scheduling configuration based on time intervals.

Inheritance

Constructors

NotificationInterval({required int? interval, String? timeZone, bool allowWhileIdle = false, bool repeats = false, bool preciseAlarm = true})
Constructs a NotificationInterval object with various scheduling options.

Properties

allowWhileIdle bool
Allows the notification to be displayed even when the device is in low battery mode.
getter/setter pairinherited
delayTolerance int
Delay tolerance in milliseconds for scheduling the notification. Minimum tolerance is typically 600,000 ms (10 minutes).
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
interval int?
The amount of seconds between each notification repetition. Must be greater than 0 or 60 if repeating.
getter/setter pair
preciseAlarm bool
Requires precise timing for the notification schedule, especially important on devices with strict power-saving features.
getter/setter pairinherited
repeats bool
Indicates whether the notification should be delivered once (false) or rescheduled each time it's delivered (true).
getter/setter pairinherited
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 pairinherited

Methods

fromMap(Map<String, dynamic> mapData) NotificationInterval?
Creates a NotificationInterval instance from a map of data.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts the NotificationInterval instance to a map.
override
toString() String
Returns a string representation of the NotificationInterval instance.
validate() → void
Validates the notification interval settings.

Operators

operator ==(Object other) bool
The equality operator.
inherited