BubbleBottomBar constructor

BubbleBottomBar({
  1. Key? key,
  2. required List<BubbleBottomBarItem> items,
  3. ValueChanged<int?>? onTap,
  4. int? currentIndex = 0,
  5. required double opacity,
  6. double? iconSize = 24.0,
  7. BorderRadius? borderRadius,
  8. double? elevation,
  9. Color? backgroundColor,
  10. bool hasNotch = false,
  11. bool hasInk = false,
  12. Color? inkColor,
  13. BubbleBottomBarFabLocation? fabLocation,
  14. EdgeInsets tilesPadding = EdgeInsets.zero,
})

Implementation

BubbleBottomBar({
  Key? key,
  required this.items,
  this.onTap,
  this.currentIndex = 0,
  required this.opacity,
  this.iconSize = 24.0,
  this.borderRadius,
  this.elevation,
  this.backgroundColor,
  this.hasNotch = false,
  this.hasInk = false,
  this.inkColor,
  this.fabLocation,
  this.tilesPadding = EdgeInsets.zero,
})  : assert(items.length >= 2),
      assert(
        items.every((BubbleBottomBarItem item) => item.title != null) == true,
        'Every item must have a non-null title',
      ),
      assert(0 <= currentIndex! && currentIndex < items.length),
      assert(iconSize != null),
      super(key: key);