morphWidth static method

double morphWidth(
  1. double progress,
  2. double startWidth,
  3. double endWidth
)

Interpolated width.

Implementation

static double morphWidth(
  double progress,
  double startWidth,
  double endWidth,
) {
  return lerpDouble(startWidth, endWidth, progress.clamp(0.0, 1.0))!;
}