scrollToTop method

void scrollToTop({
  1. bool animate = false,
  2. Curve curve = Curves.easeInOut,
})

Implementation

void scrollToTop({bool animate = false, Curve curve = Curves.easeInOut}) {
  scrollTo(0.0, animate: animate, curve: curve);
}