DropdownOptions class
Constructors
-
DropdownOptions({double? width, double height = 220, double top = 0, double left = 0, Color color = Colors.white, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(10)), BorderSide borderSide = BorderSide.none, List<
BoxShadow> shadows = const [BoxShadow(color: Color(0x1a9E9E9E), spreadRadius: 1, blurRadius: 10, offset: Offset(0, 1))], DropdownAnimationType animationType = DropdownAnimationType.scale, DropdownAlign align = DropdownAlign.center, SelectedItemAlign selectedItemAlign = SelectedItemAlign.center, DropdownGap gap = DropdownGap.zero, EdgeInsets padding = EdgeInsets.zero, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeInOut}) -
const
Properties
- align → DropdownAlign
-
The alignment of the dropdown. If the dropdown and result box are different sizes, the dropdown will be aligned to the result box
final
- animationType → DropdownAnimationType
-
The animation type of the dropdown,
size
,scale
.final - borderRadius → BorderRadius
-
The border radius of the dropdown.
final
- borderSide → BorderSide
-
The border of the dropdown.
final
- calcPadding → EdgeInsets
-
padding - dropdown border width
no setter
- color → Color
-
The color of the dropdown.
final
- curve → Curve
-
The curve of the dropdown scroll animation.
final
- duration → Duration
-
The duration of the dropdown scroll animation.
final
- gap → DropdownGap
-
The gap between the dropdown and dropdown items.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The height of the dropdown.
final
- left → double
-
The height of the dropdown.
final
- marginGap → EdgeInsets
-
dropdown border width + shadow max blur radius plus max spread radius to show shadow
no setter
- padding → EdgeInsets
-
The padding of the dropdown.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedItemAlign → SelectedItemAlign
-
The scroll alignment of the selected item in the dropdown.
final
- shadowMaxBlurRadiusPlusMaxSpreadRadius → double
-
The max blur radius plus max spread radius of the dropdown.
no setter
-
shadows
→ List<
BoxShadow> -
The shadows of the dropdown.
final
- top → double
-
The height of the dropdown.
final
- width → double?
-
The width of the dropdown.
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