tween method

GTween tween({
  1. required double duration,
  2. Object? blurX,
  3. Object? blurY,
  4. Object? angle,
  5. Object? distance,
  6. Color? color,
  7. EaseFunction? ease,
  8. double? delay,
  9. bool? useFrames,
  10. int overwrite = 1,
  11. VoidCallback? onStart,
  12. Object? onStartParams,
  13. VoidCallback? onComplete,
  14. Object? onCompleteParams,
  15. VoidCallback? onUpdate,
  16. Object? onUpdateParams,
  17. bool? runBackwards,
  18. bool? immediateRender,
  19. Map? startAt,
})

Tween the properties of the drop shadow filter.

duration is the duration of the tween animation in seconds.

blurX is the horizontal blur amount of the drop shadow.

blurY is the vertical blur amount of the drop shadow.

angle is the angle of the drop shadow in radians.

distance is the distance of the drop shadow in pixels.

color is the color of the drop shadow.

ease is the easing function to use for the tween animation.

delay is the delay before starting the tween animation in seconds.

useFrames determines whether to use frames instead of seconds for the duration and delay.

overwrite determines the behavior when attempting to tween a property that is already being tweened.

onStart is a callback function to call when the tween animation starts.

onStartParams are the parameters to pass to the onStart callback function.

onComplete is a callback function to call when the tween animation completes.

onCompleteParams are the parameters to pass to the onComplete callback function.

onUpdate is a callback function to call every time the tween animation updates.

onUpdateParams are the parameters to pass to the onUpdate callback function.

runBackwards determines whether to run the tween animation backwards.

immediateRender determines whether to immediately render the tweened properties.

startAt is a map of initial values to set on the properties before starting the tween animation.

Implementation

GTween tween({
  required double duration,
  Object? blurX,
  Object? blurY,
  Object? angle,
  Object? distance,
  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,
    angle: angle,
    distance: distance,
    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,
  );
}