getOpacityTween method

Tween<double> getOpacityTween()

Implementation

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