tween method
- required double duration,
- Object? blurX,
- Object? blurY,
- Color? color,
- EaseFunction? ease,
- double? delay,
- bool? useFrames,
- int overwrite = 1,
- VoidCallback? onStart,
- Object? onStartParams,
- VoidCallback? onComplete,
- Object? onCompleteParams,
- VoidCallback? onUpdate,
- Object? onUpdateParams,
- bool? runBackwards,
- bool? immediateRender,
- Map? startAt,
Animates the properties of this GlowFilter over a given duration
using
GTween.
The blurX
, blurY
, and color
properties can be animated. You can use
the ease
, delay
, and useFrames
parameters to control the ease
function, delay, and time units of the animation. The overwrite
parameter determines how overlapping animations are handled. You can
specify callbacks for when the animation starts, updates, and completes
with the onStart
, onUpdate
, and onComplete
parameters, respectively.
You can also pass parameters to those callbacks using the onStartParams
,
onUpdateParams
, and onCompleteParams
parameters. The runBackwards
parameter specifies whether the animation should start in reverse. You can
also specify a map of values to use as the initial state of the animation
with the startAt
parameter.
Implementation
GTween tween({
required double duration,
Object? blurX,
Object? blurY,
Color? color,
EaseFunction? ease,
double? delay,
bool? useFrames,
int overwrite = 1,
VoidCallback? onStart,
Object? onStartParams,
VoidCallback? onComplete,
Object? onCompleteParams,
VoidCallback? onUpdate,
Object? onUpdateParams,
bool? runBackwards,
bool? immediateRender,
Map? startAt,
}) {
return twn.tween(
duration: duration,
blurX: blurX,
blurY: blurY,
color: color,
ease: ease,
delay: delay,
useFrames: useFrames,
overwrite: overwrite,
onStart: onStart,
onStartParams: onStartParams,
onComplete: onComplete,
onCompleteParams: onCompleteParams,
onUpdate: onUpdate,
onUpdateParams: onUpdateParams,
runBackwards: runBackwards,
immediateRender: immediateRender,
startAt: startAt,
);
}