Curve class

Describes the timing function of a transition.

This defines an acceleration curve so that the speed of the transition can vary over its duration.

Read more: MDN transition-timing-function

Constructors

Curve.cubicBezier(double p1, double p2, double p3, double p4)
An custom cubic-Bezier curve, where the p1 and p3 values must be in the range of 0 to 1.
const
factory
Curve.linearFn(List<Linear> vals)
const
factory
Curve.steps(int steps, {required StepJump jump})
Displays the transition along steps stops along the transition, displaying each stop for equal lengths of time. How the transition behaves at the start and end is defined by jump.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The css value
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

ease → const Curve
Equal to cubic-bezier(0.25, 0.1, 0.25, 1.0), the default value, increases in velocity towards the middle of the transition, slowing back down at the end.
easeIn → const Curve
Equal to cubic-bezier(0.42, 0, 1.0, 1.0), starts off slowly, with the transition speed increasing until complete.
easeInOut → const Curve
Equal to cubic-bezier(0.42, 0, 0.58, 1.0), starts transitioning slowly, speeds up, and then slows down again.
easeOut → const Curve
Equal to cubic-bezier(0, 0, 0.58, 1.0), starts transitioning quickly, slowing down as the transition continues.
linear → const Curve
Equal to cubic-bezier(0.0, 0.0, 1.0, 1.0), transitions at an even speed.
stepEnd → const Curve
Equal to steps(1, jump-end).
stepStart → const Curve
Equal to steps(1, jump-start).