setBouncing method
Updates the appbar during bouncing (overscroll) situations Returns any remaining scroll offset that was not consumed.
Implementation
@override
double setBouncing(
double available,
AppBarPosition appBar,
NestedScrollPosition scroll,
) {
if (bouncing && scroll.totalPixels + available <= 0) {
appBar.lentPixels += available;
return available;
}
return 0;
}