morphElevation static method
Shadow elevation.
At progress 0.0 → maxElevation, at 1.0 → 0.0.
Implementation
static double morphElevation(double progress, {double maxElevation = 12.0}) {
final t = progress.clamp(0.0, 1.0);
final curvedT = Curves.easeOutCubic.transform(t);
return lerpDouble(maxElevation, 0.0, curvedT)!;
}