DropdownMenuThemeData class Null safety

Overrides the default values of visual properties for descendant DropdownMenu widgets.

Descendant widgets obtain the current DropdownMenuThemeData object with DropdownMenuTheme.of. Instances of DropdownMenuTheme can be customized with DropdownMenuThemeData.copyWith.

Typically a DropdownMenuTheme is specified as part of the overall Theme with ThemeData.dropdownMenuTheme.

All DropdownMenuThemeData properties are null by default. When null, the DropdownMenu computes its own default values, typically based on the overall theme's ThemeData.colorScheme, ThemeData.textTheme, and ThemeData.iconTheme.

Mixed in types
Annotations

Constructors

Creates a DropdownMenuThemeData that can be used to override default properties in a DropdownMenuTheme widget.
const

Properties

hashCode int
The hash code for this object.
read-onlyoverride
inputDecorationTheme InputDecorationTheme?
The input decoration theme for the TextFields in a DropdownMenu.
final
Overrides the menu's default style in a DropdownMenu.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
textStyle TextStyle?
Overrides the default value for DropdownMenu.textStyle.
final

Methods

copyWith({TextStyle? textStyle, InputDecorationTheme? inputDecorationTheme, MenuStyle? menuStyle}) DropdownMenuThemeData
Creates a copy of this object with the given fields replaced with the new values.
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(DropdownMenuThemeData? a, DropdownMenuThemeData? b, double t) DropdownMenuThemeData
Linearly interpolates between two dropdown menu themes.