AnimatableWrapper constructor
const
AnimatableWrapper(
- Widget child, {
- int? animationIndex,
- int? indexToShowAt,
- AnimationArguments? animationArguments,
- Key? key,
Constructs an AnimatableWrapper widget.
child is the widget to be wrapped and potentially animated.
animationIndex is the optional index at
which the animation should start.
indexToShowAt is the optional index at which the child
should become visible. This is required if animationIndex is set.
animationArguments is the optional animation arguments
for the child animation.
Implementation
const AnimatableWrapper(
this.child, {
this.animationIndex,
this.indexToShowAt,
this.animationArguments,
super.key,
}) : assert(
!(animationIndex != null && indexToShowAt == null),
'If animationIndex is set, indexToShowAt also needs to be specified',
);