ScrollConfiguration constructor Null safety

const ScrollConfiguration(
  1. {Key? key,
  2. required ScrollBehavior behavior,
  3. required Widget child}

Creates a widget that controls how Scrollable widgets behave in a subtree.

The behavior and child arguments must not be null.


const ScrollConfiguration({
  Key? key,
  required this.behavior,
  required Widget child,
}) : super(key: key, child: child);