getTween method

Tween<double> getTween()

Implementation

Tween<double> getTween() {
  switch (variant) {
    case NextSlideVariant.slideInTop:
      return Tween<double>(begin: initialPosition, end: 0);
    case NextSlideVariant.slideInBottom:
      return Tween<double>(begin: initialPosition * -1, end: 0);
    case NextSlideVariant.slideInLeft:
      return Tween<double>(begin: initialPosition * -1, end: 0);
    case NextSlideVariant.slideInRight:
      return Tween<double>(begin: initialPosition, end: 0);
    default:
      return Tween<double>(begin: initialPosition * -1, end: 0);
  }
}