DropdownController constructor

DropdownController({
  1. Duration duration = const Duration(milliseconds: 500),
  2. Duration errorDuration = const Duration(milliseconds: 500),
  3. Interval resultArrowInterval = const Interval(0.0, 0.5, curve: Curves.easeOut),
  4. Interval resultBoxInterval = const Interval(0.0, 0.5, curve: Curves.easeOut),
  5. Interval showDropdownInterval = const Interval(0.5, 1.0, curve: Curves.easeOut),
  6. 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,
  );
}