onDetach property
Called when a ScrollPosition is detached from the scroll controller.
{@tool dartpad} This sample shows how to apply a listener to the ScrollPosition.isScrollingNotifier using ScrollController.onAttach & ScrollController.onDetach. This is used to change the AppBar's color when scrolling is occurring.
** See code in examples/api/lib/widgets/scroll_position/scroll_controller_on_attach.0.dart ** {@end-tool}
Implementation
final ScrollControllerCallback? onDetach;