NavigationBody constructor

const NavigationBody({
  1. Key? key,
  2. required int index,
  3. required List<Widget> children,
  4. AnimatedSwitcherTransitionBuilder? transitionBuilder,
  5. Curve? animationCurve,
  6. Duration? animationDuration,
})

Creates a navigation body.

index must be greater than 0 and less than children.length

Implementation

const NavigationBody({
  Key? key,
  required this.index,
  required this.children,
  this.transitionBuilder,
  this.animationCurve,
  this.animationDuration,
})  : assert(index >= 0 && index <= children.length),
      super(key: key);