ZetaNavigationBar constructor

const ZetaNavigationBar(
  1. {required List<ZetaNavigationBarItem> items,
  2. int? currentIndex,
  3. void onTap(
    1. int value
    )?,
  4. bool splitItems = false,
  5. int? dividerIndex,
  6. Widget? action,
  7. Key? key}
)

Creates a new ZetaNavigationBar.

Implementation

const ZetaNavigationBar({
  required this.items,
  this.currentIndex,
  this.onTap,
  this.splitItems = false,
  this.dividerIndex,
  this.action,
  super.key,
}) : assert(
        items.length >= 2 && items.length <= 6,
        'The number of items should be between 2 and 6',
      );