CustomScrollView constructor

const CustomScrollView({
  1. Key? key,
  2. Axis scrollDirection = Axis.vertical,
  3. bool reverse = false,
  4. ScrollController? controller,
  5. bool? primary,
  6. ScrollPhysics? physics,
  7. ScrollBehavior? scrollBehavior,
  8. bool shrinkWrap = false,
  9. Key? center,
  10. double anchor = 0.0,
  11. @Deprecated('Use scrollCacheExtent instead. ' 'This feature was deprecated after v3.41.0-0.0.pre.') double? cacheExtent,
  12. ScrollCacheExtent? scrollCacheExtent,
  13. SliverPaintOrder paintOrder = SliverPaintOrder.firstIsTop,
  14. List<Widget> slivers = const <Widget>[],
  15. int? semanticChildCount,
  16. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  17. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  18. String? restorationId,
  19. Clip clipBehavior = Clip.hardEdge,
  20. HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
})

Creates a ScrollView that creates custom scroll effects using slivers.

See the ScrollView constructor for more details on these arguments.

Implementation

const CustomScrollView({
  super.key,
  super.scrollDirection,
  super.reverse,
  super.controller,
  super.primary,
  super.physics,
  super.scrollBehavior,
  super.shrinkWrap,
  super.center,
  super.anchor,
  @Deprecated(
    'Use scrollCacheExtent instead. '
    'This feature was deprecated after v3.41.0-0.0.pre.',
  )
  super.cacheExtent,
  super.scrollCacheExtent,
  super.paintOrder,
  this.slivers = const <Widget>[],
  super.semanticChildCount,
  super.dragStartBehavior,
  super.keyboardDismissBehavior,
  super.restorationId,
  super.clipBehavior,
  super.hitTestBehavior,
});