SMenuItemStyle class
Style of an item inside a menu
Constructors
- SMenuItemStyle({BorderRadius borderRadius = const BorderRadius.all(Radius.circular(15)), Color? accentColor, BorderSide? side, Color? bgColor, MouseCursor? mouseCursor, MainAxisAlignment alignment = MainAxisAlignment.start, double? height, double? width, double? elevation, EdgeInsets? padding, OutlinedBorder? shape})
-
const
Properties
- accentColor → Color?
-
The primary color used for text, icons, etc.
final
- alignment → MainAxisAlignment
-
The alignment of the flex widget the makes up the item
final
- bgColor → Color?
-
The background color of the item
final
- borderRadius → BorderRadius
-
The border radius of the item
final
- elevation → double?
-
The drop shadow amount determined by elevation
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The height of the item
final
- mouseCursor → MouseCursor?
-
The cursor of the mouse when hovering over the item
final
- padding → EdgeInsets?
-
The padding to apply around the item
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → OutlinedBorder?
-
The shape of the item, overwrites border radius for the item (contained in shape)
final
- side → BorderSide?
-
The border to apply on the item.
final
- width → double?
-
The width of the item
final
Methods
-
copyWith(
{MainAxisAlignment? alignment, BorderRadius? borderRadius, OutlinedBorder? shape, double? elevation, EdgeInsets? padding, double? width, double? height, Color? accentColor, Color? bgColor, MouseCursor? mouseCursor, BorderSide? side}) → SMenuItemStyle - Creates a new style object with same properties as this style object except for properties that were provided in the function.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited