attach method
- ScrollPosition position
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
void attach(ScrollPosition position) {
assert(!_positions.contains(position));
_positions.add(position);
position.addListener(notifyListeners);
if (onAttach != null) {
onAttach!(position);
}
}