from static method
Shortcut to start a tween on an target
, start from the end values
to the start values, this option basically flips the tweens.
Creates a GTween animation that animates the target
object from its
current properties to the properties defined in vars
over the given
duration
. If provided, nanoVars
can be used to configure additional
properties of the animation, such as running the animation backwards and
rendering the target immediately. If nanoVars
is not provided, a new
instance of GVars will be used.
Returns a new instance of the created GTween animation.
Implementation
static GTween from(
Object target,
double duration,
Map vars, [
GVars? nanoVars,
]) {
nanoVars ??= GVars();
nanoVars.runBackwards = true;
nanoVars.immediateRender ??= true;
return GTween(target, duration, vars, nanoVars);
}