Split class

A curve that progresses according to beginCurve until split, then according to endCurve.

Split curves are useful in situations where a widget must track the user's finger (which requires a linear animation), but can also be flung using a curve specified with the endCurve argument, after the finger is released. In such a case, the value of split would be the progress of the animation at the time when the finger was released.

For example, if split is set to 0.5, beginCurve is Curves.linear, and endCurve is Curves.easeOutCubic, then the bottom-left quarter of the curve will be a straight line, and the top-right quarter will contain the entire Curves.easeOutCubic curve.

Inheritance

Constructors

Split(double split, {Curve beginCurve = Curves.linear, Curve endCurve = Curves.easeOutCubic})
Creates a split curve.
const

Properties

beginCurve Curve
The curve to use before split is reached.
final
endCurve Curve
The curve to use after split is reached.
final
flipped Curve
Returns a new curve that is the reversed inversion of this one.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
split double
The progress value separating beginCurve from endCurve.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.
override
transformInternal(double t) double
Returns the value of the curve at point t.
inherited

Operators

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