PullDownButtonTheme class

Defines the visual properties of the routes used to display pull-down menus as well as any widgets that extend PullDownMenuEntry.

Widgets that extend PullDownMenuEntry obtain current PullDownButtonTheme object using PullDownTheme.of(context).

PullDownButtonTheme should be specified in ThemeData.extensions or using PullDownButtonInheritedTheme in builder property of MaterialApp or CupertinoApp.

All PullDownButtonTheme properties are null by default. If any of these properties are null, or some properties of sub-themes are null, the pull-down menu will use iOS 16 defaults specified in each sub-theme.

Inheritance
Mixed-in types
Annotations

Constructors

PullDownButtonTheme.new({PullDownMenuRouteTheme? routeTheme, PullDownMenuItemTheme? itemTheme, PullDownMenuDividerTheme? dividerTheme, PullDownMenuTitleTheme? titleTheme, bool? applyOpacity})
Creates the set of properties used to configure PullDownButtonTheme.
const

Properties

applyOpacity bool?
Whether to apply opacity on PullDownButton.buttonBuilder as it is in iOS or not.
final
dividerTheme PullDownMenuDividerTheme?
Sub-theme for visual properties of the dividers in pull-down menus.
final
hashCode int
The hash code for this object.
no setteroverride
itemTheme PullDownMenuItemTheme?
Sub-theme for visual properties of the items in pull-down menus.
final
routeTheme PullDownMenuRouteTheme?
Sub-theme for visual properties of the routes used to display pull-down menus.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
titleTheme PullDownMenuTitleTheme?
Sub-theme for visual properties of the titles in pull-down menus.
final
type Object
The extension's type.
no setterinherited

Methods

copyWith({PullDownMenuRouteTheme? routeTheme, PullDownMenuItemTheme? itemTheme, PullDownMenuDividerTheme? dividerTheme, PullDownMenuTitleTheme? titleTheme, bool? applyOpacity}) PullDownButtonTheme
Creates a copy of this object with the given fields replaced with the new values.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
lerp(covariant ThemeExtension<PullDownButtonTheme>? other, double t) PullDownButtonTheme
Linearly interpolate between two themes.
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