notificationContext property Null safety

BuildContext? notificationContext

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.buildOverscrollIndicator and ScrollBehavior.buildScrollbar.


BuildContext? get notificationContext => _gestureDetectorKey.currentContext;