animate method

Animate animate({
  1. Key? key,
  2. List<Effect>? effects,
  3. AnimateCallback? onInit,
  4. AnimateCallback? onPlay,
  5. AnimateCallback? onComplete,
  6. bool? autoPlay,
  7. Duration? delay,
  8. AnimationController? controller,
  9. Adapter? adapter,
  10. double? target,
  11. 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,
    );