MenuThemeData class
Defines the configuration of the submenus created by the SubmenuButton, MenuBar, or MenuAnchor widgets.
Descendant widgets obtain the current MenuThemeData object using
MenuTheme.of(context)
.
Typically, a MenuThemeData is specified as part of the overall Theme with ThemeData.menuTheme. Otherwise, MenuTheme can be used to configure its own widget subtree.
All MenuThemeData properties are null
by default. If any of these
properties are null, the menu bar will provide its own defaults.
See also:
- ThemeData, which describes the overall theme for the application.
- MenuBarThemeData, which describes the theme for the menu bar itself in a MenuBar widget.
- Mixed in types
- Implementers
- Annotations
Constructors
- MenuThemeData({MenuStyle? style})
-
Creates a const set of properties used to configure MenuTheme.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → MenuStyle?
-
The MenuStyle of a SubmenuButton menu.
final
Methods
-
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(
MenuThemeData? a, MenuThemeData? b, double t) → MenuThemeData? - Linearly interpolate between two menu button themes.