PrimaryScrollController constructor Null safety

const PrimaryScrollController(
  1. {Key? key,
  2. required ScrollController controller,
  3. required Widget child}
)

Creates a widget that associates a ScrollController with a subtree.

Implementation

const PrimaryScrollController({
  Key? key,
  required ScrollController this.controller,
  required Widget child,
}) : assert(controller != null),
     super(key: key, child: child);