MenuBarThemeData class
A data class that MenuBarTheme uses to define the visual properties of MenuBar widgets.
This class defines the visual properties of MenuBar widgets themselves, but not their submenus. Those properties are defined by MenuThemeData or MenuButtonThemeData instead.
Descendant widgets obtain the current MenuBarThemeData object using
MenuBarTheme.of(context)
.
Typically, a MenuBarThemeData is specified as part of the overall Theme with ThemeData.menuBarTheme. Otherwise, MenuTheme can be used to configure its own widget subtree.
All MenuBarThemeData properties are null
by default. If any of these
properties are null, the menu bar will provide its own defaults.
See also:
- MenuThemeData, which describes the theme for the submenus of a MenuBar.
- MenuButtonThemeData, which describes the theme for the MenuItemButtons in a menu.
- ThemeData, which describes the overall theme for the application.
- Inheritance
-
- Object
- MenuThemeData
- MenuBarThemeData
- Annotations
Constructors
- MenuBarThemeData({MenuStyle? style})
-
Creates a const set of properties used to configure MenuTheme.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → MenuStyle?
-
The MenuStyle of a SubmenuButton menu.
finalinherited
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
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.
inherited
Static Methods
-
lerp(
MenuBarThemeData? a, MenuBarThemeData? b, double t) → MenuBarThemeData? -
Linearly interpolate between two MenuBar themes.
override