morphWidth static method

double morphWidth(
  1. double progress,
  2. double originWidth,
  3. double fullWidth
)

Interpolated width.

Implementation

static double morphWidth(
  double progress,
  double originWidth,
  double fullWidth,
) {
  final t = progress.clamp(0.0, 1.0);
  return lerpDouble(originWidth, fullWidth, t)!;
}