of static method

Returns the nearest ScrollControllerProvider in context, or null.

Implementation

static ScrollControllerProvider? of(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<ScrollControllerProvider>();
}