MenuItemStyle class

Mixed in types
Annotations

Constructors

Relying on vertical paddings may cause inconsistent menu items' heights because items' content may have different heights, e.g., when some items have icons and other don't. Consider using minHeight to achieve the consistency.

Properties

arrowIconAsset AssetImage?
final
arrowIconSize double?
final
contentsMinHorzSpacing double?
final
contentsVertSpacing double?
final
hashCode int
The hash code for this object.
no setteroverride
iconStyle IconThemeData?
final
largeStartPadding double?
The padding where an icon can be located.
final
minHeight double?
final
overlayColor MenuItemMaterialStateProperty<Color>?
final
padding EdgeInsetsDirectional?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortcutLabelTextStyle TextStyle?
final
startPaddingStyle StartPaddingStyle?
final

Methods

copyWith({MenuItemMaterialStateProperty<Color>? overlayColor, double? minHeight, EdgeInsetsDirectional? padding, double? largeStartPadding, StartPaddingStyle? startPaddingStyle, double? contentsVertSpacing, double? contentsMinHorzSpacing, TextStyle? shortcutLabelTextStyle, AssetImage? arrowIconAsset, double? arrowIconSize, IconThemeData? iconStyle}) MenuItemStyle
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

lerp(MenuItemStyle a, MenuItemStyle b, double t) MenuItemStyle