apply static method

Widget Function(BuildContext, Widget?) apply()

Use this function in MaterialApp for applying custom scroll behavior.

Implementation

static Widget Function(BuildContext, Widget?) apply() {
  return (context, child) =>
      ScrollConfiguration(behavior: CustomScrollBehavior(), child: child!);
}