ScrollControllerExtension extension

Animates the position from its current value to the given value.

Any active animation is canceled. If the user is currently scrolling, that action is canceled.

The animation lasts for the 200 ms and follows the Curves.easeOut.

The returned Future will complete when the animation ends, whether it completed successfully or whether it was interrupted prematurely.

on

Methods

goTo(double offset, {Duration? duration, Curve? curve}) Future<void>