PageView.custom constructor

PageView.custom({Key key, Axis scrollDirection: Axis.horizontal, bool reverse: false, PageController controller, ScrollPhysics physics, bool pageSnapping: true, ValueChanged<int> onPageChanged, @required SliverChildDelegate childrenDelegate })

Creates a scrollable list that works page by page with a custom child model.

Implementation

PageView.custom({
  Key key,
  this.scrollDirection = Axis.horizontal,
  this.reverse = false,
  PageController controller,
  this.physics,
  this.pageSnapping = true,
  this.onPageChanged,
  @required this.childrenDelegate,
}) : assert(childrenDelegate != null),
     controller = controller ?? _defaultPageController,
     super(key: key);