StandardMenuItem<User> constructor

const StandardMenuItem<User>({
  1. Key? key,
  2. required String titleText,
  3. required RoutePath<RouteArguments>? routePath,
  4. IconData? iconData,
  5. Color? iconColour,
  6. Color? selectedIconColour,
  7. List<NavigationItem>? children,
  8. BoxDecoration? decoration,
  9. BoxDecoration? selectedDecoration,
  10. TextStyle? headerStyle,
  11. TextStyle? textStyle,
  12. TextStyle? selectedTextStyle,
  13. List<RoutePath<RouteArguments>>? routePathSelection,
})

Implementation

const StandardMenuItem({
  super.key,
  required this.titleText,
  required this.routePath,
  this.iconData,
  this.iconColour,
  this.selectedIconColour,
  this.children,
  this.decoration,
  this.selectedDecoration,
  this.headerStyle,
  this.textStyle,
  this.selectedTextStyle,
  this.routePathSelection,
}) : assert(
          routePath == null && children != null ||
              routePath != null && children == null,
          'routePath or onTap needs to be set but not both.');