getTween method

Tween<double> getTween()

Implementation

Tween<double> getTween() {
  switch (variant) {
    case NextZoomVariant.zoomIn:
      return Tween(begin: 0.0, end: initialPosition);
    case NextZoomVariant.zoomOut:
      return Tween(begin: 1.0, end: initialPosition);
    default:
      return Tween(begin: 0.0, end: 1.0);
  }
}