Animate constructor

Animate({
  1. Key? key,
  2. Widget child = const SizedBox.shrink(),
  3. List<Effect>? effects,
  4. AnimateCallback? onComplete,
  5. AnimateCallback? onPlay,
  6. Duration delay = Duration.zero,
  7. AnimationController? controller,
  8. Adapter? adapter,
})

Creates an Animate instance that will manage a list of effects and apply them to the specified child.

Implementation

Animate({
  Key? key,
  this.child = const SizedBox.shrink(),
  List<Effect>? effects,
  this.onComplete,
  this.onPlay,
  this.delay = Duration.zero,
  this.controller,
  this.adapter,
}) : super(key: key) {
  _entries = [];
  if (effects != null) addEffects(effects);
}