StandardMenuItem<User> constructor

const StandardMenuItem<User>({
  1. Key? key,
  2. required String titleText,
  3. required RoutePath<RouteArguments>? routePath,
  4. IconData? iconData,
  5. List<NavigationItem>? children,
  6. BoxDecoration? decoration,
  7. BoxDecoration? selectedDecoration,
})

Implementation

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