TitledPageView.builder constructor

TitledPageView.builder({Key key, bool reverse: false, bool pageSnapping: true, bool fadeEffect: true, bool controlButtons: true, PageController controller, ScrollPhysics physics, ValueChanged<int> onPageChanged, @required IndexedWidgetBuilder titleBuilder, @required IndexedWidgetBuilder bodyBuilder })

Takes two IndexedWidgetBuilder's and constructs the title and the body from them.

Creates a semi-infinitely scrollable PageView, where the title is build from titleBuilder and the body from bodyBuilder. Contrary to PageView.builder, there is no itemCount option, in order to make the TitledPageView finite sized.

Implementation

TitledPageView.builder({
	Key key,
	this.reverse = false,
	this.pageSnapping = true,
	this.fadeEffect = true,
	this.controlButtons = true,
	PageController controller,
	this.physics,
	this.onPageChanged,
	@required this.titleBuilder,
	@required this.bodyBuilder
}) : controller = controller ?? PageController();