positionAnimationCurve property

Animation<double> get positionAnimationCurve

Returns a curve that can be applied to all transitions that are synchronized with positionTween.

Implementation

Animation<double> get positionAnimationCurve {
  // Define where on the timeline the animation should start.
  final animationStart = transitionWidget != null
      ? 0.0
      : useVerticalTransition
          ? 0.1
          : 0.2;

  return CurvedAnimation(
    parent: animation,
    curve: Interval(
      animationStart,
      1.0,
      curve: Curves.fastOutSlowIn,
    ),
    reverseCurve: Interval(
      animationStart,
      1.0,
      curve: Curves.fastOutSlowIn.flipped,
    ),
  );
}