CustomAnimationBuilder<T> constructor

const CustomAnimationBuilder<T>({
  1. required ValueWidgetBuilder<T> builder,
  2. required Animatable<T> tween,
  3. required Duration duration,
  4. Control control = Control.play,
  5. Curve curve = Curves.linear,
  6. Duration delay = Duration.zero,
  7. double startPosition = 0.0,
  8. Widget? child,
  9. AnimationStatusListener? animationStatusListener,
  10. int? fps,
  11. bool developerMode = false,
  12. VoidCallback? onStarted,
  13. VoidCallback? onCompleted,
  14. Key? key,
})

Implementation

const CustomAnimationBuilder({
  required this.builder,
  required this.tween,
  required this.duration,
  this.control = Control.play,
  this.curve = Curves.linear,
  this.delay = Duration.zero,
  this.startPosition = 0.0,
  this.child,
  this.animationStatusListener,
  this.fps,
  this.developerMode = false,
  this.onStarted,
  this.onCompleted,
  Key? key,
})  : assert(startPosition >= 0 && startPosition <= 1,
          'The property startPosition must have a value between 0.0 and 1.0.'),
      super(key: key);