StringKeyframeTrack class

A Track that interpolates Strings

Inheritance

Constructors

StringKeyframeTrack(String name, List<num> times, List<num> values, [int? interpolation])
name - identifier for the KeyframeTrack.

Properties

createInterpolant ↔ Function?
getter/setter pairinherited
defaultInterpolation ↔ int
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
name ↔ String
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeBufferType ↔ String
getter/setter pairinherited
times ↔ List<num>
getter/setter pairinherited
valueBufferType ↔ String
getter/setter pairinherited
values ↔ List<num>
getter/setter pairinherited
valueTypeName ↔ String
getter/setter pairinherited

Methods

clone() → StringKeyframeTrack
Returns a copy of this track.
override
getInterpolation() → int?
Returns the interpolation type.
inherited
getValueSize() → int
Returns the size of each value (that is the length of the values array divided by the length of the times array).
inherited
interpolantFactoryMethodDiscrete(dynamic result) → Interpolant?
Creates a new DiscreteInterpolant from the times and values. A Float32Array can be passed which will receive the results. Otherwise a new array with the appropriate size will be created automatically.
inherited
interpolantFactoryMethodLinear(dynamic result) → Interpolant?
The value of this method here is 'null', as it does not make sense for discrete properties.
override
interpolantFactoryMethodSmooth(dynamic result) → Interpolant?
The value of this method here is 'null', as it does not make sense for discrete properties.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optimize() → KeyframeTrack
Removes equivalent sequential keys, which are common in morph target sequences.
inherited
scale(double timeScale) → KeyframeTrack
Scales all keyframe times by a factor
inherited
setInterpolation(int interpolation) → KeyframeTrack
inherited
shift(dynamic timeOffset) → KeyframeTrack
Moves all keyframes either forward or backward in time.
inherited
toString() → String
A string representation of this object.
inherited
trim(dynamic startTime, dynamic endTime) → KeyframeTrack
Removes keyframes before startTime and after endTime, without changing any values within the range `startTime`, `endTime`.
inherited
validate() → bool
Performs minimal validation on the tracks. Returns true if valid.
inherited

Operators

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