TimeFrame class
A class representing a time frame.
Constructors
Properties
- days → int
-
The number of days in the time frame.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hours → int
-
The number of hours in the time frame.
final
- minutes → int
-
The number of minutes in the time frame.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seconds → int
-
The number of seconds in the time frame.
final
Methods
-
hasLapsed(
DateTime fromTime) → bool -
Returns true if the given
fromTime
is before the time frame (has lapsed). -
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 Properties
- forever → TimeFrame
-
A common time frame that will always be in the future.
no setter
- months1 → TimeFrame
-
A common time frame that is 1 calendar month (30 days).
no setter
- months12 → TimeFrame
-
A common time frame that is 12 calendar months (365 days).
no setter
- months2 → TimeFrame
-
A common time frame that is 2 calendar months (61 days).
no setter
- months3 → TimeFrame
-
A common time frame that is 3 calendar months (91 days).
no setter
- months6 → TimeFrame
-
A common time frame that is 6 calendar months (182 days).
no setter
- never → TimeFrame
-
A common time frame that will always be in the past.
no setter