applyCurve method

double applyCurve(
  1. double t
)

Applies the effect's curve to a linear value t (0.0–1.0).

t — raw linear progress to transform through the curve.

Implementation

double applyCurve(double t) {
  return curve.transform(t.clamp(0.0, 1.0));
}