MainNavigationBar constructor
navigation
refers to the target main navigation path to take.
currentNavigation is currently selected navigation. This will typically come from MainNavigationBloc
the index provided in builder is the currently selected index in navigationPossibilities or 0, if none match.
the function provided in builder is the function that fires the corresponding event up the widget tree. Pass the index of navigationPossibilities that you wish to navigate to.
Implementation
MainNavigationBar(
{Key? key,
required this.currentNavigation,
required this.builder,
required this.navigationPossibilities})
: super(key: key) {
assert(navigationPossibilities.isNotEmpty);
}