DropdownItemDecoration class
Represents the decoration for the dropdown items.
Constructors
- DropdownItemDecoration({Color? backgroundColor, Color? disabledBackgroundColor, Color? selectedBackgroundColor, Color? selectedTextColor, Color? textColor, Color? disabledTextColor, Icon? selectedIcon = const Icon(Icons.check), Icon? disabledIcon})
-
Creates a new instance of DropdownItemDecoration.
const
Properties
- backgroundColor → Color?
-
The background color of the dropdown item.
final
- disabledBackgroundColor → Color?
-
The background color of the disabled dropdown item.
final
- disabledIcon → Icon?
-
The icon to display for the disabled dropdown item.
final
- disabledTextColor → Color?
-
The text color of the disabled dropdown item.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedBackgroundColor → Color?
-
The background color of the selected dropdown item.
final
- selectedIcon → Icon?
-
The icon to display for the selected dropdown item.
final
- selectedTextColor → Color?
-
The text color of the selected dropdown item.
final
- textColor → Color?
-
The text color of the dropdown 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