EffectController class abstract
Drives a ControlledEffect's timing and progress.
Constructors
- EffectController.duration(double duration, [Curve? curve])
-
factory
- EffectController.empty()
-
const
- EffectController.infinite(EffectController child)
-
factory
- EffectController.once(EffectController child)
-
factory
- EffectController.repeat(EffectController child, int times)
-
factory
- EffectController.roundtrip(EffectController child)
-
factory
-
EffectController.sequence(List<
EffectController> children) -
factory
- EffectController.speed(double speed, [Curve? curve])
-
factory
- EffectController.terminal()
-
factory
- EffectController.wait(double duration)
-
factory
Properties
- duration → double?
-
How long this controller 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 controller has started progressing.
no setter
- isFinished → bool
-
Whether or not this controller has finished.
no setter
- isInfinite → bool
-
Whether duration is
double.infinity.no setter - progress → double
-
This controller'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 controller's internal clock by
dt, returning any leftover time once finished. -
attach(
ControlledEffect effect) → void -
Called once, when this controller's
effectis constructed. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recede(
double dt) → double -
The reverse of advance: recedes this controller's internal clock by
dt, returning any leftover time once back at the start. -
setToEnd(
) → void - Jumps this controller straight to its end.
-
setToStart(
) → void - Resets this controller back to its start.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited