MenuThemeData class Null safety

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:

Mixed in types
Implementers
Annotations

Constructors

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

Properties

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

Static Methods

lerp(MenuThemeData? a, MenuThemeData? b, double t) MenuThemeData?
Linearly interpolate between two menu button themes.