NavBarItem constructor

NavBarItem({
  1. required String text,
  2. Key? key,
  3. GestureTapCallback? onTap,
  4. GestureTapCallback? onDoubleTap,
  5. GestureLongPressCallback? onLongPress,
  6. GestureTapDownCallback? onTapDown,
  7. GestureTapCancelCallback? onTapCancel,
  8. ValueChanged<bool>? onHighlightChanged,
  9. ValueChanged<bool>? onHover,
  10. MouseCursor? mouseCursor,
  11. Color? focusColor,
  12. Color? hoverColor,
  13. Color? highlightColor,
  14. MaterialStateProperty<Color?>? overlayColor,
  15. Color? splashColor,
  16. InteractiveInkFeatureFactory? splashFactory,
  17. double? radius,
  18. BorderRadius? borderRadius,
  19. ShapeBorder? customBorder,
  20. bool? enableFeedback = true,
  21. bool excludeFromSemantics = false,
  22. FocusNode? focusNode,
  23. bool canRequestFocus = true,
  24. ValueChanged<bool>? onFocusChange,
  25. bool autofocus = false,
})

NavBarItem's named constructor

Implementation

NavBarItem({
  required this.text,
  Key? key,
  GestureTapCallback? onTap,
  GestureTapCallback? onDoubleTap,
  GestureLongPressCallback? onLongPress,
  GestureTapDownCallback? onTapDown,
  GestureTapCancelCallback? onTapCancel,
  ValueChanged<bool>? onHighlightChanged,
  ValueChanged<bool>? onHover,
  MouseCursor? mouseCursor,
  Color? focusColor,
  Color? hoverColor,
  Color? highlightColor,
  MaterialStateProperty<Color?>? overlayColor,
  Color? splashColor,
  InteractiveInkFeatureFactory? splashFactory,
  double? radius,
  BorderRadius? borderRadius,
  ShapeBorder? customBorder,
  bool? enableFeedback = true,
  bool excludeFromSemantics = false,
  FocusNode? focusNode,
  bool canRequestFocus = true,
  ValueChanged<bool>? onFocusChange,
  bool autofocus = false,
}) : super(
        key: key,
        child: _NavBarItemChild(text: text),
        onTap: onTap,
        onDoubleTap: onDoubleTap,
        onLongPress: onLongPress,
        onTapDown: onTapDown,
        onTapCancel: onTapCancel,
        onHighlightChanged: onHighlightChanged,
        onHover: onHover,
        mouseCursor: mouseCursor,
        focusColor: focusColor,
        hoverColor: hoverColor,
        highlightColor: highlightColor,
        overlayColor: overlayColor,
        splashColor: splashColor,
        splashFactory: splashFactory,
        radius: radius,
        borderRadius: borderRadius,
        customBorder: customBorder,
        enableFeedback: enableFeedback ?? true,
        excludeFromSemantics: excludeFromSemantics,
        focusNode: focusNode,
        canRequestFocus: canRequestFocus,
        onFocusChange: onFocusChange,
        autofocus: autofocus,
      );