TweenAnimationBuilder<T extends Object?> constructor
- Key? key,
- required Tween<
T> tween, - required Duration duration,
- Curve curve = Curves.linear,
- required ValueWidgetBuilder<
T> builder, - VoidCallback? onEnd,
- Widget? child,
Creates a TweenAnimationBuilder.
The TweenAnimationBuilder takes full ownership of the provided tween instance and mutates it. Once a Tween has been passed to a TweenAnimationBuilder, its properties should not be accessed or changed anymore to avoid interference with the TweenAnimationBuilder.
Implementation
const TweenAnimationBuilder({
super.key,
required this.tween,
required super.duration,
super.curve,
required this.builder,
super.onEnd,
this.child,
});