animateScroll method
Future<void>
animateScroll({
- double alignment = 0.0,
- Duration? duration,
- Curve curve = Curves.ease,
- ScrollPositionAlignmentPolicy alignmentPolicy = ScrollPositionAlignmentPolicy.explicit,
Implementation
Future<void> animateScroll({
double alignment = 0.0,
Duration? duration,
Curve curve = Curves.ease,
ScrollPositionAlignmentPolicy alignmentPolicy =
ScrollPositionAlignmentPolicy.explicit,
}) async {
return await currentContext!.animateScroll(
alignment: alignment,
duration: duration,
curve: curve,
alignmentPolicy: alignmentPolicy,
);
}