Curve class Null safety
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
-
- Object
- ParametricCurve<
double> - Curve
- 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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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
.protected">@protectedinherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited