AnimationCurve enum
An easing curve, by the name of its Flutter Curves constant. spring
is a damped spring (see Motion.spring); step jumps half way.
Values
- linear → const AnimationCurve
- easeIn → const AnimationCurve
- easeOut → const AnimationCurve
- easeInOut → const AnimationCurve
- easeOutBack → const AnimationCurve
- easeOutCubic → const AnimationCurve
- easeInOutCubic → const AnimationCurve
- easeInOutSine → const AnimationCurve
- fastOutSlowIn → const AnimationCurve
- decelerate → const AnimationCurve
- elasticOut → const AnimationCurve
- bounceOut → const AnimationCurve
- spring → const AnimationCurve
- step → const AnimationCurve
- emphasized → const AnimationCurve
-
Material 3's emphasized easing,
Cubic(0.2, 0, 0, 1): a quick start that settles gently (entrances, page and sheet motion). - overshoot → const AnimationCurve
-
The web's ease-out-back,
cubic-bezier(0.34, 1.56, 0.64, 1): a bigger overshoot than easeOutBack, landing with a slap (stickers, cards dropping onto a wall).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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 -
This curve at
t(0–1).springfollows a fixed damped spring, as a transition between two values does.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parse(
Object? v) → AnimationCurve? -
The curve named
v(any case, spaces and dashes ignored), or null.
Constants
-
values
→ const List<
AnimationCurve> - A constant List of the values in this enum, in order of their declaration.