MenuBarThemeData class Null safety

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:

Inheritance
Annotations

Constructors

Creates a const set of properties used to configure MenuTheme.
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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 non-existent 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 text button themes.
override