ContextMenuThemeData class

Theme data for ContextMenu.

Annotations

Constructors

ContextMenuThemeData({IconThemeData? iconThemeData, double? menuWidthStep, double? itemHeight, double? minMenuWidth, double? maxMenuWidth, double? menuHorizontalPadding, TextStyle? textStyle, Color? selectedColor, Color? selectedHighlightColor, Color? selectedHoverColor, Color? selectedForeground, Color? hoverColor, Color? highlightColor, Color? background, Color? color})
Creates a ContextMenuThemeData.
const

Properties

background Color?
The background color of the menu.
final
color Color?
The color of the menu border.
final
hashCode int
The hash code for this object.
no setteroverride
highlightColor Color?
The color of an item when highlighted color.
final
hoverColor Color?
The color of an item when hovering over it.
final
iconThemeData IconThemeData?
The icon theme.
final
itemHeight double?
The item height.
final
maxMenuWidth double?
The maximum width of the menu.
final
The horizontal padding for the menu item.
final
The menu step width.
final
minMenuWidth double?
The minimum width of the menu.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedColor Color?
The color of an item when selected.
final
selectedForeground Color?
The text foreground when selected and hovered.
final
selectedHighlightColor Color?
The color of an item when selected and highlighted.
final
selectedHoverColor Color?
The color of an item when selected and hovered.
final
textStyle TextStyle?
The TextStyle of the item.
final

Methods

copyWith({IconThemeData? iconThemeData, double? menuWidthStep, double? itemHeight, double? minMenuWidth, double? maxMenuWidth, double? menuHorizontalPadding, TextStyle? textStyle, Color? selectedColor, Color? selectedHighlightColor, Color? selectedHoverColor, Color? selectedForeground, Color? hoverColor, Color? highlightColor, Color? background, Color? color}) ContextMenuThemeData
Makes a copy of ContextMenuThemeData overwriting selected fields.
merge(ContextMenuThemeData? other) ContextMenuThemeData
Merges the theme data ContextMenuThemeData.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(covariant ContextMenuThemeData other) bool
The equality operator.
override