TrackerPeriod enum

Represents different time periods for tracking purposes.

Inheritance
Available extensions

Values

seconds10 → const TrackerPeriod

10 seconds period.

seconds20 → const TrackerPeriod

20 seconds period.

seconds30 → const TrackerPeriod

30 seconds period.

minutes1 → const TrackerPeriod

1 minute period.

minutes2 → const TrackerPeriod

2 minutes period.

minutes3 → const TrackerPeriod

3 minutes period.

minutes5 → const TrackerPeriod

5 minutes period.

minutes10 → const TrackerPeriod

10 minutes period.

minutes15 → const TrackerPeriod

15 minutes period.

minutes20 → const TrackerPeriod

20 minutes period.

minutes30 → const TrackerPeriod

30 minutes period.

hourly → const TrackerPeriod

1 hour period.

every2Hours → const TrackerPeriod

2 hours period.

every3Hours → const TrackerPeriod

3 hours period.

every6Hours → const TrackerPeriod

6 hours period.

every12Hours → const TrackerPeriod

12 hours period.

daily → const TrackerPeriod

1 day period.

weekly → const TrackerPeriod

1 week period.

monthly → const TrackerPeriod

1 month period (approximated as 31 days).

Properties

duration Duration

Available on TrackerPeriod, provided by the TrackerPeriodExt extension

Returns the Duration corresponding to the TrackerPeriod.
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

alignedStart(DateTime now) DateTime

Available on TrackerPeriod, provided by the TrackerPeriodExt extension

Calculates the aligned start of the current period based on now.
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

Constants

values → const List<TrackerPeriod>
A constant List of the values in this enum, in order of their declaration.