CellPageView constructor

const CellPageView({
  1. Key? key,
  2. required MutableCell<int> page,
  3. ValueCell<bool>? animate,
  4. ValueCell<Duration>? duration,
  5. ValueCell<Curve>? curve,
  6. ValueCell<void>? nextPage,
  7. ValueCell<void>? previousPage,
  8. MetaCell<bool>? isAnimating,
  9. ValueCell<Axis> scrollDirection = const ValueCell.value(Axis.horizontal),
  10. ValueCell<bool> reverse = const ValueCell.value(false),
  11. ValueCell<ScrollPhysics?>? physics,
  12. ValueCell<bool> pageSnapping = const ValueCell.value(true),
  13. ValueCell<List<Widget>> children = const ValueCell.value(const <Widget>[]),
  14. ValueCell<DragStartBehavior> dragStartBehavior = const ValueCell.value(DragStartBehavior.start),
  15. ValueCell<bool> allowImplicitScrolling = const ValueCell.value(false),
  16. ValueCell<String?>? restorationId,
  17. ValueCell<Clip> clipBehavior = const ValueCell.value(Clip.hardEdge),
  18. ValueCell<HitTestBehavior> hitTestBehavior = const ValueCell.value(HitTestBehavior.opaque),
  19. ValueCell<ScrollBehavior?>? scrollBehavior,
  20. ValueCell<bool> padEnds = const ValueCell.value(true),
})

Implementation

const CellPageView({
  super.key,
  required this.page,
  this.animate,
  this.duration,
  this.curve,
  this.nextPage,
  this.previousPage,
  this.isAnimating,
  this.scrollDirection = const ValueCell.value(Axis.horizontal),
  this.reverse = const ValueCell.value(false),
  this.physics,
  this.pageSnapping = const ValueCell.value(true),
  this.children = const ValueCell.value(const <Widget>[]),
  this.dragStartBehavior = const ValueCell.value(DragStartBehavior.start),
  this.allowImplicitScrolling = const ValueCell.value(false),
  this.restorationId,
  this.clipBehavior = const ValueCell.value(Clip.hardEdge),
  this.hitTestBehavior = const ValueCell.value(HitTestBehavior.opaque),
  this.scrollBehavior,
  this.padEnds = const ValueCell.value(true),
});