animateToTop method

void animateToTop(
  1. {Duration duration = const Duration(milliseconds: 400),
  2. Curve curve = Curves.easeInOut}
)

Implementation

void animateToTop(
        {Duration duration = const Duration(milliseconds: 400),
        Curve curve = Curves.easeInOut}) =>
    animateTo(0, duration: duration, curve: curve);