FlippedCurve class Null safety

A curve that is the reversed inversion of its given curve.

This curve evaluates the given curve in reverse (i.e., from 1.0 to 0.0 as t increases from 0.0 to 1.0) and returns the inverse of the given curve's value (i.e., 1.0 minus the given curve's value).

This is the class used to implement the flipped getter on curves.

This is often useful with CurvedAnimation.reverseCurve.

See also:

Inheritance

Constructors

FlippedCurve(Curve curve)
Creates a flipped curve.
const

Properties

curve Curve
The curve that is being flipped.
final
flipped Curve
Returns a new curve that is the reversed inversion of this one.
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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