HorizonNavigationView constructor

HorizonNavigationView({
  1. Key? key,
  2. int tabIndex = 0,
  3. dynamic onTabIndexChange(
    1. int
    )?,
  4. List<NavigationBarItem> navItems = const [],
  5. NavigationStyle? navigationStyle,
})

Implementation

HorizonNavigationView({Key? key,
  this.tabIndex = 0,
  this.onTabIndexChange,
  this.navItems = const [],
  this.navigationStyle})
    : super(
  destinations: [
    ...navItems.map((e) {
      return NavigationDestination(
          icon: e.icon, label: e.label);
    })
  ],
  selectedIndex: tabIndex,
  onDestinationSelected: (int index) {
    onTabIndexChange?.call(index);
  },
);