SideMenuItemDataTile constructor
const
SideMenuItemDataTile({
- required bool isSelected,
- required void onTap(),
- Widget? icon,
- String? title,
- TextStyle? titleStyle,
- TextStyle? selectedTitleStyle,
- String? tooltip,
- bool hasSelectedLine = true,
- Size selectedLineSize = const Size(Constants.itemSelectedLineWidth, Constants.itemSelectedLineHeight),
- double itemHeight = Constants.itemHeight,
- EdgeInsetsDirectional margin = Constants.itemMargin,
- BorderRadiusGeometry? borderRadius,
- Widget? selectedIcon,
- Color? highlightSelectedColor,
- Color? hoverColor,
- SideMenuItemBadgeBuilder? badgeBuilder,
- Decoration? decoration,
- ShapeBorder? shape,
- Clip clipBehavior = Clip.hardEdge,
Implementation
const SideMenuItemDataTile({
required this.isSelected,
required this.onTap,
this.icon,
this.title,
this.titleStyle,
this.selectedTitleStyle,
this.tooltip,
this.hasSelectedLine = true,
this.selectedLineSize = const Size(
Constants.itemSelectedLineWidth,
Constants.itemSelectedLineHeight,
),
this.itemHeight = Constants.itemHeight,
this.margin = Constants.itemMargin,
this.borderRadius,
this.selectedIcon,
this.highlightSelectedColor,
this.hoverColor,
this.badgeBuilder,
this.decoration,
this.shape,
this.clipBehavior = Clip.hardEdge,
}) : assert(itemHeight >= 0.0),
assert(icon != null || title != null),
assert((highlightSelectedColor == null && decoration == null) ||
(highlightSelectedColor != null
? decoration == null
: decoration != null
? highlightSelectedColor == null
: true)),
super();