TweenAnimationBuilderModifier<T extends Object?> constructor
const
TweenAnimationBuilderModifier<T extends Object?> ({
- Key? key,
- Widget? child,
- Key? modifierKey,
- required Tween<
T> tween, - required Duration duration,
- Curve curve = Curves.linear,
- required ValueWidgetBuilder<
T> builder, - VoidCallback? onEnd,
Creates a TweenAnimationBuilder.
The properties tween, duration, and builder are required. The values
for tween, curve, and builder must not be null.
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 TweenAnimationBuilderModifier({
super.key,
super.child,
super.modifierKey,
required this.tween,
required this.duration,
this.curve = Curves.linear,
required this.builder,
this.onEnd,
});