NavigationItem constructor

NavigationItem({
  1. required String labelText,
  2. RoutePath<RouteArguments>? routePath,
  3. IconData? iconData,
  4. List<NavigationItem>? children,
})

Implementation

NavigationItem({
  required this.labelText,
  this.routePath,
  this.iconData,
  this.children,
}) : assert(
          routePath == null && children != null ||
              routePath != null && children == null,
          'A NavigationItem requires a routePath or children. It also cannot have both.');