AnimationUtils class
An object with various functions to assist with animations, used internally.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
arraySlice<
T> (List< T> array, [int from = 0, int? to]) → List<T> -
convertArray(
List< num> array, String type, [bool forceClone = false]) → List<num> - Converts an array to a specific type.
-
flattenJSON(
List? jsonKeys, List< num> times, List<num> values, String valuePropertyName) → void -
getKeyframeOrder(
List< num> times) → List<int> - Returns an array by which times and values can be sorted.
-
isTypedArray(
dynamic object) → bool -
Returns
true
if the object is a typed array. -
makeClipAdditive(
AnimationClip targetClip, {int referenceFrame = 0, AnimationClip? referenceClip, int fps = 30}) → AnimationClip - Converts the keyframes of the given animation clip to an additive format.
-
sortedArray(
List< num> values, int stride, List<int> order) → List<num> - Sorts the array previously returned by getKeyframeOrder.
-
subclip(
AnimationClip sourceClip, String name, int startFrame, int endFrame, {int fps = 30}) → AnimationClip - Creates a new clip, containing only the segment of the original clip between the given frames.