Animator<T> constructor

Animator<T>({
  1. Key? key,
  2. Tween<T>? tween,
  3. Map<String, Tween>? tweenMap,
  4. Duration duration = const Duration(milliseconds: 500),
  5. Curve? curve = Curves.linear,
  6. int? cycles,
  7. int? repeats,
  8. bool resetAnimationOnRebuild = false,
  9. bool? triggerOnInit,
  10. required Widget builder(
    1. BuildContext context,
    2. AnimatorState<T> animatorState,
    3. Widget? child
    ),
  11. Widget? child,
  12. AnimatorKey<T>? animatorKey,
  13. void customListener(
    1. AnimatorState<T>
    )?,
  14. void endAnimationListener(
    1. AnimatorState<T>
    )?,
  15. void statusListener(
    1. AnimationStatus,
    2. AnimatorState<T>
    )?,
})

A facade widget that hide the complexity of setting animation in Flutter

It allows you to easily implement almost all the available Animation in flutter

Implementation

Animator({
  Key? key,
  this.tween,
  this.tweenMap,
  this.duration = const Duration(milliseconds: 500),
  this.curve = Curves.linear,
  this.cycles,
  this.repeats,
  this.resetAnimationOnRebuild = false,
  this.triggerOnInit,
  required this.builder,
  this.child,
  this.animatorKey,
  this.customListener,
  this.endAnimationListener,
  this.statusListener,
  // this.tickerMixin,
  // this.observe,
}) : super(key: key);