DropdownController<T> constructor
DropdownController<T> ({
- Duration duration = const Duration(milliseconds: 500),
- Duration errorDuration = const Duration(milliseconds: 500),
- Interval resultArrowInterval = const Interval(0.0, 0.5, curve: Curves.easeOut),
- Interval resultBoxInterval = const Interval(0.0, 0.5, curve: Curves.easeOut),
- Interval showDropdownInterval = const Interval(0.5, 1.0, curve: Curves.easeOut),
- Curve showErrorCurve = Curves.easeIn,
Implementation
DropdownController({
this.duration = const Duration(milliseconds: 500),
this.errorDuration = const Duration(milliseconds: 500),
this.resultArrowInterval = const Interval(0.0, 0.5, curve: Curves.easeOut),
this.resultBoxInterval = const Interval(0.0, 0.5, curve: Curves.easeOut),
this.showDropdownInterval = const Interval(0.5, 1.0, curve: Curves.easeOut),
this.showErrorCurve = Curves.easeIn,
}) {
_controller = AnimationController(
vsync: this,
duration: duration,
);
_errorController = AnimationController(
vsync: this,
duration: errorDuration,
);
}