The delegate property of the closest instance of this class that encloses the given context.
If no such instance exists, returns a default ScrollConfigurationDelegate that approximates the scrolling physics of the current platform (see defaultTargetPlatform) using a OverscrollWhenScrollableBehavior behavior model.
Typical usage is as follows:
ScrollConfigurationDelegate scrollConfiguration = ScrollConfiguration.of(context);
Source
static ScrollConfigurationDelegate of(BuildContext context) { ScrollConfiguration configuration = context.inheritFromWidgetOfExactType(ScrollConfiguration); return configuration?.delegate ?? _defaultDelegate; }