Curves class abstract final

A collection of common animation curves.

See also:

  • Curve, the interface implemented by the constants available from the Curves class.
  • Easing, for the Material animation curves.

Constructors

Curves()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

bounceIn → const Curve
An oscillating curve that grows in magnitude.
bounceInOut → const Curve
An oscillating curve that first grows and then shrink in magnitude.
bounceOut → const Curve
An oscillating curve that first grows and then shrink in magnitude.
decelerate → const Curve
A curve where the rate of change starts out quickly and then decelerates; an upside-down f(t) = t² parabola.
ease → const Cubic
A cubic animation curve that speeds up quickly and ends slowly.
easeIn → const Cubic
A cubic animation curve that starts slowly and ends quickly.
easeInBack → const Cubic
A cubic animation curve that starts slowly and ends quickly. This curve is similar to Curves.elasticIn in that it overshoots its bounds before reaching its end. Instead of repeated swinging motions before ascending, though, this curve overshoots once, then continues to ascend.
easeInCirc → const Cubic
A cubic animation curve that starts slowly and ends quickly. This curve is effectively the bottom-right quarter of a circle.
easeInCubic → const Cubic
A cubic animation curve that starts slowly and ends quickly. This curve is based on a cubic equation where f(t) = t³. The result is a safe sweet spot when choosing a curve for widgets animating off the viewport.
easeInExpo → const Cubic
A cubic animation curve that starts slowly and ends quickly. This curve is based on an exponential equation where f(t) = 2¹⁰⁽ᵗ⁻¹⁾.
easeInOut → const Cubic
A cubic animation curve that starts slowly, speeds up, and then ends slowly.
easeInOutBack → const Cubic
A cubic animation curve that starts slowly, speeds up, and then ends slowly. This curve can be imagined as Curves.easeInBack as the first half, and Curves.easeOutBack as the second.
easeInOutCirc → const Cubic
A cubic animation curve that starts slowly, speeds up, and then ends slowly. This curve can be imagined as Curves.easeInCirc as the first half, and Curves.easeOutCirc as the second.
easeInOutCubic → const Cubic
A cubic animation curve that starts slowly, speeds up, and then ends slowly. This curve can be imagined as Curves.easeInCubic as the first half, and Curves.easeOutCubic as the second.
easeInOutCubicEmphasized → const ThreePointCubic
A cubic animation curve that starts slowly, speeds up shortly thereafter, and then ends slowly. This curve can be imagined as a steeper version of easeInOutCubic.
easeInOutExpo → const Cubic
A cubic animation curve that starts slowly, speeds up, and then ends slowly.
easeInOutQuad → const Cubic
A cubic animation curve that starts slowly, speeds up, and then ends slowly. This curve can be imagined as Curves.easeInQuad as the first half, and Curves.easeOutQuad as the second.
easeInOutQuart → const Cubic
A cubic animation curve that starts slowly, speeds up, and then ends slowly. This curve can be imagined as Curves.easeInQuart as the first half, and Curves.easeOutQuart as the second.
easeInOutQuint → const Cubic
A cubic animation curve that starts slowly, speeds up, and then ends slowly. This curve can be imagined as Curves.easeInQuint as the first half, and Curves.easeOutQuint as the second.
easeInOutSine → const Cubic
A cubic animation curve that starts slowly, speeds up, and then ends slowly. This is similar to Curves.easeInOut, but with sinusoidal easing for a slightly less abrupt beginning and end.
easeInQuad → const Cubic
A cubic animation curve that starts slowly and ends quickly. Based on a quadratic equation where f(t) = t², this is effectively the inverse of Curves.decelerate.
easeInQuart → const Cubic
A cubic animation curve that starts slowly and ends quickly. This curve is based on a quartic equation where f(t) = t⁴.
easeInQuint → const Cubic
A cubic animation curve that starts slowly and ends quickly. This curve is based on a quintic equation where f(t) = t⁵.
easeInSine → const Cubic
A cubic animation curve that starts slowly and ends quickly. This is similar to Curves.easeIn, but with sinusoidal easing for a slightly less abrupt beginning and end. Nonetheless, the result is quite gentle and is hard to distinguish from Curves.linear at a glance.
easeInToLinear → const Cubic
A cubic animation curve that starts slowly and ends linearly.
easeOut → const Cubic
A cubic animation curve that starts quickly and ends slowly.
easeOutBack → const Cubic
A cubic animation curve that starts quickly and ends slowly. This curve is similar to Curves.elasticOut in that it overshoots its bounds before reaching its end. Instead of repeated swinging motions after ascending, though, this curve only overshoots once.
easeOutCirc → const Cubic
A cubic animation curve that starts quickly and ends slowly. This curve is effectively the top-left quarter of a circle.
easeOutCubic → const Cubic
A cubic animation curve that starts quickly and ends slowly. This curve is a flipped version of Curves.easeInCubic.
easeOutExpo → const Cubic
A cubic animation curve that starts quickly and ends slowly. This curve is a flipped version of Curves.easeInExpo. Using this curve can give your animations extra flare, but a longer duration may need to be used to compensate for the steepness of the curve.
easeOutQuad → const Cubic
A cubic animation curve that starts quickly and ends slowly. This is effectively the same as Curves.decelerate, only simulated using a cubic bezier function.
easeOutQuart → const Cubic
A cubic animation curve that starts quickly and ends slowly. This curve is a flipped version of Curves.easeInQuart.
easeOutQuint → const Cubic
A cubic animation curve that starts quickly and ends slowly. This curve is a flipped version of Curves.easeInQuint.
easeOutSine → const Cubic
A cubic animation curve that starts quickly and ends slowly. This is similar to Curves.easeOut, but with sinusoidal easing for a slightly less abrupt beginning and end. Nonetheless, the result is quite gentle and is hard to distinguish from Curves.linear at a glance.
elasticIn → const ElasticInCurve
An oscillating curve that grows in magnitude while overshooting its bounds.
elasticInOut → const ElasticInOutCurve
An oscillating curve that grows and then shrinks in magnitude while overshooting its bounds.
elasticOut → const ElasticOutCurve
An oscillating curve that shrinks in magnitude while overshooting its bounds.
fastEaseInToSlowEaseOut → const ThreePointCubic
A curve that starts slowly, speeds up very quickly, and then ends slowly.
fastLinearToSlowEaseIn → const Cubic
A curve that is very steep and linear at the beginning, but quickly flattens out and very slowly eases in.
fastOutSlowIn → const Cubic
A curve that starts quickly and eases into its final position.
linear → const Curve
A linear animation curve.
linearToEaseOut → const Cubic
A cubic animation curve that starts linearly and ends slowly.
slowMiddle → const Cubic
A cubic animation curve that starts quickly, slows down, and then ends quickly.