AnimationInterpolation enum
Values
- linear → const AnimationInterpolation
-
The animated values are linearly interpolated between keyframes. When targeting a rotation, spherical linear interpolation (slerp) SHOULD be used to interpolate quaternions. The number of output elements MUST equal the number of input elements.
const AnimationInterpolation('LINEAR')
- step → const AnimationInterpolation
-
The animated values remain constant to the output of the first keyframe, until the next keyframe. The number of output elements MUST equal the number of input elements.
const AnimationInterpolation('STEP')
- cubicSpline → const AnimationInterpolation
-
The animation's interpolation is computed using a cubic spline with specified tangents. The number of output elements MUST equal three times the number of input elements. For each input element, the output stores three elements, an in-tangent, a spline vertex, and an out-tangent. There MUST be at least two keyframes when using this interpolation.
const AnimationInterpolation('CUBICSPLINE')
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
- value → String
-
final
Methods
-
lerp(
Vector3 a, Vector3 b, double t) → Vector3 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
slerp(
Quaternion a, Quaternion b, double t) → Quaternion -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parse(
Map< String, Object?> map, String key) → AnimationInterpolation? -
valueOf(
String value) → AnimationInterpolation
Constants
-
values
→ const List<
AnimationInterpolation> - A constant List of the values in this enum, in order of their declaration.