Curve class abstract

An parametric animation 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.
Inheritance
Implementers
Annotations

Constructors

Curve()
Abstract const constructor to enable 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.
no setter
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
transform(double t) double
Returns the value of the curve at point t.
override
transformInternal(double t) double
Returns the value of the curve at point t.
inherited

Operators

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