SpeedEffectController class
Properties
-
curve
→ Curve
-
Shapes progress over time. Defaults to Curves.linear.
final
-
duration
→ double?
-
How long this controller takes to complete, if known.
double.infinity
if it never completes on its own.
no setteroverride
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hasStarted
→ bool
-
Whether or not this controller has started progressing.
no setteroverride
-
isFinished
→ bool
-
Whether or not this controller has finished.
no setteroverride
-
isInfinite
→ bool
-
Whether duration is
double.infinity.
no setterinherited
-
progress
→ double
-
This controller's current progress.
no setteroverride
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
speed
→ double
-
How fast to progress, in measured units per second.
final
Methods
-
advance(double dt)
→ double
-
Advances this controller's internal clock by
dt, returning any
leftover time once finished.
override
-
attach(ControlledEffect effect)
→ void
-
Called once, when this controller's
effect is constructed.
override
-
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.
override
-
setToEnd()
→ void
-
Jumps this controller straight to its end.
override
-
setToStart()
→ void
-
Resets this controller back to its start.
override
-
toString()
→ String
-
A string representation of this object.
inherited