ZeroNavigationBar constructor

const ZeroNavigationBar({
  1. Key? key,
  2. required List<ZeroNavigationBarItem> items,
  3. int? activeIndex,
  4. ValueChanged<int>? onTap,
  5. ZeroNavigationBarStyle? style,
  6. ZeroNavigationBarType type = ZeroNavigationBarType.iconLabel,
})

Implementation

const ZeroNavigationBar({
  super.key,
  required this.items,
  this.activeIndex,
  this.onTap,
  this.style,
  this.type = ZeroNavigationBarType.iconLabel,
}) : assert(items.length > 2, 'Items must be more than 2 item');