AppConstants class
Utility helpers used by the package. Mirrors the behaviour you had:
- isHoursPassed(storedDateTimeString, minutes) -> returns false if snooze still active.
- addHours(minutes) -> returns an ISO-like datetime string to store.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
addHours(
int minutes) → String -
Returns a UTC timestamp string representing now +
minutesminutes. This mirrors the behavior of saving a snooze-until time. -
format(
DateTime dt) → String - Optional helper to format DateTime into readable string
-
isHoursPassed(
String storedDateTimeString, int minutes) → bool -
Expects a stored string previously written by addHours.
Returns true when the
storedDateTimeStringis older thanminutesminutes.