Curve class

An easing curve, i.e. a mapping of the unit interval to the unit interval.

Easing curves are used to adjust the rate of change of an animation over time, allowing them to speed up and slow down, rather than moving at a constant rate.

A curve must map t=0.0 to 0.0 and t=1.0 to 1.0.

See also:

  • Curves, a collection of common animation easing curves.
  • CurveTween, which can be used to apply a Curve to an Animation.
  • Canvas.drawArc, which draws an arc, and has nothing to do with easing curves.
  • Animatable, for a more flexible interface that maps fractions to arbitrary values.
Implemented by
  • @immutable


Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.


flipped Curve
Returns a new curve that is the reversed inversion of this one. [...]
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited


toString() → String
Returns a string representation of this object.
transform(double t) → double
Returns the value of the curve at point t. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]


operator ==(dynamic other) → bool
The equality operator. [...]