notificationContext property

BuildContext notificationContext
override

The BuildContext that should be used when dispatching ScrollNotifications.

This context is typically different that the context of the scrollable widget itself. For example, Scrollable uses a context outside the Viewport but inside the widgets created by ScrollBehavior.buildViewportChrome.

Implementation

@override
BuildContext get notificationContext => _gestureDetectorKey.currentContext;