NestedScrollView constructor

const NestedScrollView(
  1. {Key? key,
  2. ScrollController? controller,
  3. Axis scrollDirection = Axis.vertical,
  4. bool reverse = false,
  5. ScrollPhysics? physics,
  6. required NestedScrollViewHeaderSliversBuilder headerSliverBuilder,
  7. required Widget body,
  8. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  9. bool floatHeaderSlivers = false,
  10. Clip clipBehavior = Clip.hardEdge,
  11. String? restorationId,
  12. ScrollBehavior? scrollBehavior}
)

Creates a nested scroll view.

The reverse, headerSliverBuilder, and body arguments must not be null.

Implementation

const NestedScrollView({
  super.key,
  this.controller,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.physics,
  required this.headerSliverBuilder,
  required this.body,
  this.dragStartBehavior = DragStartBehavior.start,
  this.floatHeaderSlivers = false,
  this.clipBehavior = Clip.hardEdge,
  this.restorationId,
  this.scrollBehavior,
});