detach method
- ScrollPosition position
Unregister the given position with this controller.
After this function returns, the animateTo and jumpTo methods on this controller will not manipulate the given position.
Implementation
void detach(ScrollPosition position) {
assert(_positions.contains(position));
if (onDetach != null) {
onDetach!(position);
}
position.removeListener(notifyListeners);
_positions.remove(position);
}