animate method

AnimateList<Widget> animate({
  1. List<Effect>? effects,
  2. AnimateCallback? onInit,
  3. AnimateCallback? onPlay,
  4. AnimateCallback? onComplete,
  5. bool? autoPlay,
  6. Duration? delay,
  7. Duration? interval,
})

Wraps the target List<Widget> in an AnimateList instance, and returns the instance for chaining calls. Ex. [foo, bar].animate() is equivalent to AnimateList(children: [foo, bar]).

Implementation

AnimateList animate({
  List<Effect>? effects,
  AnimateCallback? onInit,
  AnimateCallback? onPlay,
  AnimateCallback? onComplete,
  bool? autoPlay,
  Duration? delay,
  Duration? interval,
}) =>
    AnimateList(
      effects: effects,
      onInit: onInit,
      onPlay: onPlay,
      onComplete: onComplete,
      autoPlay: autoPlay,
      delay: delay,
      interval: interval,
      children: this,
    );