NomoBottomBar<T> constructor

const NomoBottomBar<T>({
  1. required List<NomoMenuItem<T>> items,
  2. required T? selected,
  3. double? itemWidth,
  4. double? widthFactor,
  5. Key? key,
  6. double? height,
  7. TextStyle? style,
  8. void onTap(
    1. NomoMenuItem<T> item
    )?,
  9. Widget? title,
  10. Color? background,
  11. Color? foreground,
  12. Color? selectedForeground,
  13. BorderRadius? itemBorderRadius,
  14. double? spacing,
  15. EdgeInsetsGeometry? padding,
  16. double? iconSize,
  17. EdgeInsetsGeometry? itemPadding,
  18. Widget itemDecorator(
    1. NomoMenuItem<T> item,
    2. Widget child
    )?,
  19. double? elevation,
  20. BorderRadius? borderRadius,
})

Implementation

const NomoBottomBar({
  required this.items,
  required this.selected,
  this.itemWidth,
  this.widthFactor,
  super.key,
  this.height,
  this.style,
  this.onTap,
  this.title,
  this.background,
  this.foreground,
  this.selectedForeground,
  this.itemBorderRadius,
  this.spacing,
  this.padding,
  this.iconSize,
  this.itemPadding,
  this.itemDecorator,
  this.elevation,
  this.borderRadius,
}) : assert(
        items.length > 0 && items.length <= 5,
        'Items must be between 1 and 5',
      );