SlideAnimationWidget constructor
const
SlideAnimationWidget({})
Creates a slide animation that slides its child from the given
verticalOffset
and horizontalOffset
to its final position.
A default value of 50.0 is applied to verticalOffset
if
verticalOffset
and horizontalOffset
are both undefined or null.
The child argument must not be null.
Implementation
const SlideAnimationWidget({
Key? key,
this.duration,
this.delay,
this.curve = Curves.ease,
double? verticalOffset,
double? horizontalOffset,
required this.child,
}) : verticalOffset = verticalOffset ?? 50.0,
horizontalOffset = horizontalOffset ?? 0.0,
super(key: key);