anyCurve static method

Curve? anyCurve(
  1. String value
)

A curve: a name (linear, ease, ease-in, ease-out, ease-in-out, fast-out-slow-in, decelerate, standard, emphasized, bounce-out, ... see curveNames) or four numbers (curve); null otherwise.

Implementation

static Curve? anyCurve(String value) =>
    _namedCurves[canonical(value)] ?? curve(value);