maybeStopSnapAnimation method

void maybeStopSnapAnimation(
  1. ScrollDirection direction
)

If a header snap animation or a showOnScreen expand animation is underway then stop it.

Implementation

void maybeStopSnapAnimation(ScrollDirection direction) {
  _controller?.stop();
}