MenuHeader class final
Represents a text header in a context menu.
This class is used to define a header that can be displayed within a context menu.
Parameters:
- text - The text of the header.
- disableUppercase - Whether to disable the text in uppercase.
see:
- Inheritance
-
- Object
- ContextMenuEntry
- MenuHeader
Constructors
- MenuHeader({required String text, bool disableUppercase = false})
-
const
Properties
- debugLabel → String
-
no setterinherited
- disableUppercase → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
final
Methods
-
builder(
BuildContext context, ) → Widget -
Builds the widget representation of the context menu entry.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onMouseEnter(
PointerEnterEvent event, ) → void -
Called when the mouse pointer enters the area of the context menu entry.
inherited
-
onMouseExit(
PointerExitEvent event, ) → void -
Called when the mouse pointer exits the area of the context menu entry.
inherited
-
onMouseHover(
PointerHoverEvent event, ) → void -
Called when the mouse pointer hovers over the context menu entry.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited