LivePageView constructor

const LivePageView({
  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. Axis scrollDirection = Axis.horizontal,
  10. bool reverse = false,
  11. ScrollPhysics? physics,
  12. bool pageSnapping = true,
  13. List<Widget> children = const <Widget>[],
  14. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  15. bool allowImplicitScrolling = false,
  16. String? restorationId,
  17. Clip clipBehavior = Clip.hardEdge,
  18. HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
  19. ScrollBehavior? scrollBehavior,
  20. bool padEnds = true,
})

Implementation

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