AnimateWidget constructor

const AnimateWidget({
  1. Key? key,
  2. double? initialValue,
  3. double lowerBound = 0.0,
  4. double upperBound = 1.0,
  5. Duration duration = const Duration(milliseconds: 500),
  6. Duration? reverseDuration,
  7. Curve curve = Curves.linear,
  8. Curve? reverseCurve,
  9. int? repeats,
  10. int? cycles,
  11. void endAnimationListener()?,
  12. AnimationBehavior animationBehavior = AnimationBehavior.normal,
  13. bool triggerOnInit = true,
  14. bool triggerOnRebuild = false,
  15. bool resetOnRebuild = false,
  16. required Widget builder(
    1. BuildContext,
    2. Animate animate
    ),
})

Implementation

const AnimateWidget({
  Key? key,
  this.initialValue,
  this.lowerBound = 0.0,
  this.upperBound = 1.0,
  this.duration = const Duration(milliseconds: 500),
  this.reverseDuration,
  this.curve = Curves.linear,
  this.reverseCurve,
  this.repeats,
  this.cycles,
  this.endAnimationListener,
  this.animationBehavior = AnimationBehavior.normal,
  this.triggerOnInit = true,
  this.triggerOnRebuild = false,
  this.resetOnRebuild = false,
  required this.builder,
}) : super(key: key);