TabBarView constructor
const
TabBarView({
- Key? key,
- required List<
Widget> children, - TabController? controller,
- ScrollPhysics? physics,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- double viewportFraction = 1.0,
- Clip clipBehavior = Clip.hardEdge,
Creates a page view with one child per tab.
The length of children
must be the same as the controller
's length.
Implementation
const TabBarView({
super.key,
required this.children,
this.controller,
this.physics,
this.dragStartBehavior = DragStartBehavior.start,
this.viewportFraction = 1.0,
this.clipBehavior = Clip.hardEdge,
}) : assert(children != null),
assert(dragStartBehavior != null);