NavigationBranchContainer constructor

const NavigationBranchContainer({
  1. Key? key,
  2. required int currentIndex,
  3. required List<Widget> children,
  4. required int maxRetainedBranches,
})

Implementation

const NavigationBranchContainer({
  super.key,
  required this.currentIndex,
  required this.children,
  required this.maxRetainedBranches,
}) : assert(maxRetainedBranches > 0),
     assert(currentIndex >= 0 && currentIndex < children.length);