StandardMenuItem<User> constructor
const
StandardMenuItem<User> ({
- Key? key,
- required String titleText,
- required RoutePath<
RouteArguments> ? routePath, - IconData? iconData,
- Color? iconColour,
- Color? selectedIconColour,
- List<
NavigationItem> ? children, - BoxDecoration? decoration,
- BoxDecoration? selectedDecoration,
- TextStyle? headerStyle,
- TextStyle? textStyle,
- TextStyle? selectedTextStyle,
- List<
RoutePath< ? routePathSelection,RouteArguments> >
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.');