Animator<T> constructor
Animator<T> ({
- Key? key,
- Tween<
T> ? tween, - Map<
String, Tween> ? tweenMap, - Duration duration = const Duration(milliseconds: 500),
- Curve? curve = Curves.linear,
- int? cycles,
- int? repeats,
- bool resetAnimationOnRebuild = false,
- bool? triggerOnInit,
- required Widget builder(
- BuildContext context,
- AnimatorState<
T> animatorState, - Widget? child
- Widget? child,
- AnimatorKey<
T> ? animatorKey, - void customListener()?,
- void endAnimationListener()?,
- void statusListener()?,
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);