QuietHours class

A set of daily quiet windows with point-in-time and "when does quiet end" queries. Immutable.

Constructors

QuietHours(List<QuietWindow> windows)
Creates quiet hours from windows (applied every day). Audited: 2026-06-12 11:26 EDT
const
QuietHours.daily(int startMinute, int endMinute)
Convenience for a single daily window [startMinute, endMinute). Audited: 2026-06-12 11:26 EDT
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
windows List<QuietWindow>
The configured quiet windows.
final

Methods

isQuiet(DateTime at) bool
Whether at falls inside any quiet window (minute resolution). Audited: 2026-06-12 11:26 EDT
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
quietUntil(DateTime at) DateTime?
If at is within quiet hours, the instant quiet ends (so a deferred notification can be scheduled for then); otherwise null. Back-to-back and overlapping windows are chained so the result is the end of the contiguous quiet stretch, not just the first window. Audited: 2026-06-12 11:26 EDT
toString() String
A string representation of this object.
inherited

Operators

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