TabBarView constructor

const TabBarView({
  1. Key? key,
  2. required List<Widget> children,
  3. TabController? controller,
  4. ScrollPhysics? physics,
  5. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
})

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({
  Key? key,
  required this.children,
  this.controller,
  this.physics,
  this.dragStartBehavior = DragStartBehavior.start,
}) : assert(children != null),
     assert(dragStartBehavior != null),
     super(key: key);