CustomDropdownAnimation class

Controls how the CustomDropdown overlay animates open and closed.

Constructors

CustomDropdownAnimation({DropdownAnimationType type = DropdownAnimationType.sizeFade, Duration duration = const Duration(milliseconds: 300), Duration? reverseDuration, Curve curve = Curves.easeOutCubic, Curve reverseCurve = Curves.easeInCubic, bool enabled = true, DropdownTransitionBuilder? builder, bool staggerItems = false, Duration itemStagger = const Duration(milliseconds: 60), Duration itemDuration = const Duration(milliseconds: 300)})
const

Properties

builder → DropdownTransitionBuilder?
Optional fully custom transition. When provided it takes precedence over type, receiving the curved animation, the open direction and the child.
final
curve → Curve
Curve used while opening.
final
duration → Duration
Duration of the opening animation.
final
enabled → bool
When false the overlay opens/closes instantly (no animation).
final
hashCode → int
The hash code for this object.
no setterinherited
itemDuration → Duration
Duration of each list item's entrance animation. Only used when staggerItems is true.
final
itemStagger → Duration
Delay added per list item for the staggered entrance (capped for long lists). Only used when staggerItems is true.
final
reverseCurve → Curve
Curve used while closing.
final
reverseDuration → Duration?
Duration of the closing animation. Defaults to duration when null.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
staggerItems → bool
When true, list items fade + slide in with a cascading stagger each time the overlay opens. Ignored when enabled is false.
final
type → DropdownAnimationType
The built-in transition to use. Ignored when builder is provided.
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

Constants

none → const CustomDropdownAnimation
No animation — the overlay appears/disappears instantly.