DropdownDecoration class
Represents the decoration for the dropdown.
Constructors
- DropdownDecoration({Color? backgroundColor, double elevation = 1, double maxHeight = 400, double marginTop = 0, EdgeInsets? listPadding, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(12)), Widget? header, String noItemsFoundText = 'No items found', ExpandDirection expandDirection = ExpandDirection.auto, Duration animationDuration = const Duration(milliseconds: 200), Curve animationCurve = Curves.easeOutCubic})
-
Creates a new instance of DropdownDecoration.
const
Properties
- animationCurve → Curve
-
The curve used for the dropdown open/close animation.
final
- animationDuration → Duration
-
The duration of the dropdown open/close animation.
final
- backgroundColor → Color?
-
The background color of the dropdown.
final
- borderRadius → BorderRadius
-
The border radius of the dropdown.
final
- elevation → double
-
The elevation of the dropdown.
final
- expandDirection → ExpandDirection
-
The direction in which the dropdown expands.
final
-
The custom footer widget to display at the bottom of the dropdown.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → Widget?
-
The custom header widget to display at the top of the dropdown.
final
- listPadding → EdgeInsets?
-
Padding around the dropdown items list.
final
- marginTop → double
-
the margin top of the dropdown
final
- maxHeight → double
-
The maximum height of the dropdown.
final
- noItemsFoundText → String
-
The text to display when no items are found in the dropdown.
Defaults to 'No items found'.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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