animate method
Animate
animate({
- Key? key,
- List<
Effect> ? effects, - AnimateCallback? onInit,
- AnimateCallback? onPlay,
- AnimateCallback? onComplete,
- bool? autoPlay,
- Duration? delay,
- AnimationController? controller,
- Adapter? adapter,
- double? target,
- double? value,
Wraps the target Widget in an Animate instance, and returns
the instance for chaining calls.
Ex. myWidget.animate()
is equivalent to Animate(child: myWidget)
.
Implementation
Animate animate({
Key? key,
List<Effect>? effects,
AnimateCallback? onInit,
AnimateCallback? onPlay,
AnimateCallback? onComplete,
bool? autoPlay,
Duration? delay,
AnimationController? controller,
Adapter? adapter,
double? target,
double? value,
}) =>
Animate(
key: key,
effects: effects,
onInit: onInit,
onPlay: onPlay,
onComplete: onComplete,
autoPlay: autoPlay,
delay: delay,
controller: controller,
adapter: adapter,
target: target,
value: value,
child: this,
);