attach method
Register the given position with this controller.
After this function returns, the animateTo and jumpTo methods on this controller will manipulate the given position.
Implementation
@override
void attach(ScrollPosition position) {
if (position.hasPixels &&
position is _MultiStateSheetScrollPosition &&
position._extent.availablePixels > 0.0) {
_extent.isEnabled = true;
}
super.attach(position);
}