animToTop method
Scroll to top with given animation duration
Implementation
Future<void> animToTop({milliseconds = 300}) async {
animateTo(
0,
duration: Duration(milliseconds: milliseconds),
curve: Curves.decelerate,
);
}
Scroll to top with given animation duration
Future<void> animToTop({milliseconds = 300}) async {
animateTo(
0,
duration: Duration(milliseconds: milliseconds),
curve: Curves.decelerate,
);
}