ZetaNavigationBar constructor

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

Creates a new ZetaNavigationBar.

Implementation

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