QuietHoursSettings class
Quiet hours configuration.
Constructors
- QuietHoursSettings.new({bool enabled = false, String? startTime, String? endTime, bool allowCritical = true, bool allowCalls = true, bool weekdaysOnly = false})
-
Creates quiet hours settings.
const
-
QuietHoursSettings.fromMap(Map<
String, dynamic> map) -
Creates quiet hours settings from a map.
factory
Properties
- allowCalls → bool
-
Whether to allow call notifications during quiet hours.
final
- allowCritical → bool
-
Whether to allow critical notifications during quiet hours.
final
- enabled → bool
-
Whether quiet hours are enabled.
final
- endTime → String?
-
End time in HH:MM format.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → String?
-
Start time in HH:MM format.
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - weekdaysOnly → bool
-
Whether quiet hours apply only to weekdays.
final
Methods
-
fromJson(
String json) → QuietHoursSettings -
Converts the object from a JSON string representation.
inherited
-
fromMap(
Map< String, dynamic> map) → QuietHoursSettings - Converts the object from a Map representation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
Converts the object to a JSON string representation.
inherited
-
toMap(
) → Map< String, dynamic> -
Converts the
BaseDataModel
object to a Map representation. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited