TimelineAxis class final
The timeline's axis: always elapsed (ARCHITECTURE C.3). A position is real time since the axis start, so an event's length on screen is its true length, a 25-hour day is 25 hours wide and a 23-hour one 23. The slots are cut on the wall clock: the 02:00 slot happens twice on a fall-back night (once per offset), not at all on a spring-forward one.
Properties
- end → Instant
-
final
-
groups
→ List<
TimelineGroup> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → double
-
Length in nominal slots (a fall-back day of 30-minute slots is 50, not 48).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slotMinutes → int
-
A nominal slot, in minutes (the time unit's step; 1440 for days): the
scale's unit on screen.
final
-
slots
→ List<
TimelineSlot> -
final
- start → Instant
-
final
- unit → TimelineUnit
-
final
Methods
-
fromPosition(
double x) → Instant - The instant at a position (slots from the start), clamped.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
slotAt(
Instant at) → int - The slot holding an instant (its index), or -1 outside.
-
toPosition(
Instant at) → double - An instant's position, in nominal slots from the start, clamped to the axis.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited