tween method
GTween
tween({
- required double duration,
- Object? blurX,
- Object? blurY,
- 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,
Creates a tween animation for the blur filter properties.
The duration
parameter specifies the duration of the animation. The
blurX
and blurY
parameters specify the end values for the X and Y blur
amounts, respectively. The ease
parameter specifies the easing function
to be used for the animation.
Returns a GTween instance of the animation.
Implementation
GTween tween({
required double duration,
Object? blurX,
Object? blurY,
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,
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,
);
}