scrollToTop method

void scrollToTop({
  1. Duration duration = ScrollUtils.duration,
})

Implementation

void scrollToTop({Duration duration = ScrollUtils.duration}) {
  animateTo(0.0, curve: Curves.easeOut, duration: duration);
}