morphHeight static method

double morphHeight(
  1. double progress,
  2. double startHeight,
  3. double endHeight
)

Interpolated height.

Implementation

static double morphHeight(
  double progress,
  double startHeight,
  double endHeight,
) {
  return lerpDouble(startHeight, endHeight, progress.clamp(0.0, 1.0))!;
}