jumpToTop method
The method for the jump to top.
Implementation
Future<void> jumpToTop() async {
if (controller.hasClients) {
if (controller.offset > 0) {
controller.jumpTo(0);
}
}
}
The method for the jump to top.
Future<void> jumpToTop() async {
if (controller.hasClients) {
if (controller.offset > 0) {
controller.jumpTo(0);
}
}
}