CustomAnimationBuilder<T> constructor
const
CustomAnimationBuilder<T> ({
- required ValueWidgetBuilder<
T> builder, - required Animatable<
T> tween, - required Duration duration,
- Control control = Control.play,
- Curve curve = Curves.linear,
- Duration delay = Duration.zero,
- double startPosition = 0.0,
- Widget? child,
- AnimationStatusListener? animationStatusListener,
- int? fps,
- bool developerMode = false,
- VoidCallback? onStarted,
- VoidCallback? onCompleted,
- 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,
super.key,
}) : assert(startPosition >= 0 && startPosition <= 1,
'The property startPosition must have a value between 0.0 and 1.0.');