NavigationItem constructor
NavigationItem({
- required String labelText,
- RoutePath<
RouteArguments> ? routePath, - IconData? iconData,
- 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.');