moveToMaxTop method
Smoothly scrolls to the top of the list/grid.
duration controls the animation time.
curve controls the animation curve.
Implementation
Future<void> moveToMaxTop({
Duration? duration,
Curve? curve,
}) async {
_Frame.addBefore(() async => await _scrollController!.animateTo(
_scrollController!.position.minScrollExtent,
duration: duration ?? const Duration(milliseconds: 400),
curve: curve ?? Curves.easeOutQuad,
));
}