PrimaryScrollController constructor Null safety
- {Key? key,
- required ScrollController controller,
- Set<
TargetPlatform> automaticallyInheritForPlatforms = _kMobilePlatforms, - Axis? scrollDirection = Axis.vertical,
- required Widget child}
Creates a widget that associates a ScrollController with a subtree.
Implementation
const PrimaryScrollController({
super.key,
required ScrollController this.controller,
this.automaticallyInheritForPlatforms = _kMobilePlatforms,
this.scrollDirection = Axis.vertical,
required super.child,
}) : assert(controller != null);