Timeline class abstract
A run of progress over time: how long it takes, how it is shaped, and how
it composes. Drives a TimelineEffect or a Transition.
Constructors
- Timeline()
-
const
- Timeline.duration(double duration, [Curve? curve])
-
factory
- Timeline.infinite(Timeline child)
-
factory
- Timeline.once(Timeline child)
-
factory
- Timeline.repeat(Timeline child, int times)
-
factory
- Timeline.roundtrip(Timeline child)
-
factory
-
Timeline.sequence(List<
Timeline> children) -
factory
- Timeline.speed(double speed, [Curve? curve])
-
factory
- Timeline.terminal()
-
factory
- Timeline.wait(double duration)
-
factory
Properties
- duration → double?
-
How long this timeline takes to complete, if known.
double.infinityif it never completes on its own.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hasStarted → bool
-
Whether or not this timeline has started progressing.
no setter
- isFinished → bool
-
Whether or not this timeline has finished.
no setter
- isInfinite → bool
-
Whether duration is
double.infinity.no setter - progress → double
-
This timeline's current progress.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
advance(
double dt) → double -
Advances this timeline's internal clock by
dt, returning any leftover time once finished. -
fit(
double distance) → void - Tells this timeline how far its progress will carry, for one paced by speed. Composites pass it to their children; the rest ignore it.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recede(
double dt) → double -
The reverse of advance: recedes this timeline's internal clock by
dt, returning any leftover time once back at the start. -
setToEnd(
) → void - Jumps this timeline straight to its end.
-
setToStart(
) → void - Resets this timeline back to its start.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited