swipeDown method

void swipeDown()

Implementation

void swipeDown() {
  if (widget.children.length > 0 && _animationController.status != AnimationStatus.forward) {
    _animationType = 2;
    _animationX = Tween<double>(begin: 0, end: 30).animate(_animationController);
    _animationY = Tween<double>(begin: 0, end: _baseContainerConstraints.maxHeight).animate(_animationController);
    if (widget.maxAngle > 0)
      _animationAngle = Tween<double>(begin: 0, end: (_maxAngle * 0.2) * -1).animate(_animationController);
    _animationController.forward();
  }
}