DefaultTabControllerModifier constructor

const DefaultTabControllerModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required int length,
  5. int initialIndex = 0,
  6. Duration? animationDuration,
})

Creates a default tab controller for the given child widget.

The length argument is typically greater than one. The length must match TabBar.tabs's and TabBarView.children's length.

The initialIndex argument must not be null.

Implementation

const DefaultTabControllerModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.length,
  this.initialIndex = 0,
  this.animationDuration,
});