NotchedNavBar constructor

const NotchedNavBar({
  1. Key? key,
  2. required NotchedDecoration notchDecoration,
  3. required Color? color,
  4. required double? navBarElevation,
  5. required dynamic onTap(
    1. int
    ),
  6. double navbarHeight = kNotchedNavbarHeight,
  7. int index = 0,
  8. required List<NavbarItem> items,
})

Implementation

const NotchedNavBar(
    {Key? key,
    required this.notchDecoration,
    required this.color,
    required this.navBarElevation,
    required this.onTap,
    this.navbarHeight = kNotchedNavbarHeight,
    this.index = 0,
    required this.items})
    : assert(items.length > 2,
          """NotchedNavBar requires at least 3 items to function properly,
          This is a temporary limitation and will be fixed in the future.
          If you need a navbar with less than 3 items, please use the StandardNavbar widget
          using the NavbarDecoration.navbarType: NavbarType.standard property.
          """),
      super(key: key);