TweenAnimationBuilderModifier<T extends Object?> constructor

const TweenAnimationBuilderModifier<T extends Object?>({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required Tween<T> tween,
  5. required Duration duration,
  6. Curve curve = Curves.linear,
  7. required ValueWidgetBuilder<T> builder,
  8. 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,
});