ExtendedNestedScrollView constructor

const ExtendedNestedScrollView({
  1. Key? key,
  2. ScrollController? controller,
  3. Axis scrollDirection = Axis.vertical,
  4. bool reverse = false,
  5. ScrollPhysics? physics,
  6. required NestedScrollViewHeaderSliversBuilder headerSliverBuilder,
  7. required int innerControllerCount,
  8. required int activeControllerIndex,
  9. required Widget bodyBuilder(
    1. BuildContext context,
    2. List<ScrollController> innerControllers
    ),
  10. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  11. bool floatHeaderSlivers = false,
  12. Clip clipBehavior = Clip.hardEdge,
  13. String? restorationId,
  14. ScrollBehavior? scrollBehavior,
  15. bool onNotification(
    1. Notification notification
    )?,
})

Implementation

const ExtendedNestedScrollView({
  Key? key,
  this.controller,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.physics,
  required this.headerSliverBuilder,
  required this.innerControllerCount,
  required this.activeControllerIndex,
  required this.bodyBuilder,
  this.dragStartBehavior = DragStartBehavior.start,
  this.floatHeaderSlivers = false,
  this.clipBehavior = Clip.hardEdge,
  this.restorationId,
  this.scrollBehavior,
  this.onNotification,
})  : assert(innerControllerCount > 0),
      assert(activeControllerIndex < innerControllerCount),
      super(key: key);