swipeRight method

void swipeRight()

Implementation

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