scrollToTop method

void scrollToTop()

Smoothly scrolls the list to the top position.

Uses a duration of 200 milliseconds and an easeInQuad curve.

Implementation

void scrollToTop() {
  animateTo(
    0,
    curve: Curves.easeInQuad,
    duration: const Duration(milliseconds: 200),
  );
}