getTween method

Tween<double> getTween()

Implementation

Tween<double> getTween() {
  switch (variant) {
    case NextFadeOutVariant.fadeOutTop:
      return Tween<double>(end: initialPosition * 1, begin: 0);
    case NextFadeOutVariant.fadeOutBottom:
      return Tween<double>(end: initialPosition * -1, begin: 0);
    case NextFadeOutVariant.fadeOutLeft:
      return Tween<double>(end: initialPosition * -1, begin: 0);
    case NextFadeOutVariant.fadeOutRight:
      return Tween<double>(end: initialPosition, begin: 0);
    default:
      return Tween<double>(end: initialPosition * -1, begin: 0);
  }
}