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.
Implementers
Annotations
  • @immutable

Constructors

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

Properties

flipped Curve
Returns a new curve that is the reversed inversion of this one. [...]
read-only
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

Methods

toString() String
Returns a string representation of this object.
override
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. [...]
inherited

Operators

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