CustomDropDownButtonItem<T> class

Represents an item in the CustomDropDownButton menu.

Constructors

CustomDropDownButtonItem({required String text, required VoidCallback? onPressed, required T value, Key? key, double iconSpacing = 8, bool enabled = true, TextAlign textAlign = TextAlign.start, Widget? icon, TextStyle? textStyle, ButtonStyle? buttonStyle, EdgeInsets? margin})
Creates a CustomDropDownButtonItem with the provided properties.

Properties

buttonStyle ButtonStyle?
Button style for the menu item.
final
enabled bool
Determines if the menu item is enabled.
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget?
Optional icon displayed alongside the text.
final
iconSpacing double
Padding (spacing) for the icon.
final
key Key?
Unique key for the menu item.
final
margin EdgeInsets?
final
onPressed VoidCallback?
Callback event when the menu item is selected.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Text displayed for this menu item.
final
textAlign TextAlign
Alignment of the text in the menu item.
final
textStyle TextStyle?
Text style for the menu item.
final
value → T
The value associated with this menu item.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited