ScrollControllerCallback typedef
ScrollControllerCallback =
void Function(ScrollPosition position)
Signature for when a CrossScrollController has added or removed a ScrollPosition.
Since a ScrollPosition is not created and attached to a controller until the Scrollable is built, this can be used to respond to the position being attached to a controller.
By having access to the position directly, additional listeners can be applied to aspects of the scroll position, like ScrollPosition.isScrollingNotifier.
Used by CrossScrollController.onAttach and CrossScrollController.onDetach.
Implementation
typedef ScrollControllerCallback = void Function(ScrollPosition position);