StringKeyframeTrack constructor

StringKeyframeTrack(
  1. String name,
  2. List<num> times,
  3. List<num> values, [
  4. int? interpolation,
])

name - identifier for the KeyframeTrack.

times - array of keyframe times.

values - values for the keyframes at the times specified.

[interpolation] - the type of interpolation to use. See

Animation Constants for possible values. Default is Animation InterpolateLinear.

Implementation

/// [Animation Constants] for possible values. Default is
/// [Animation InterpolateLinear].
StringKeyframeTrack(super.name,super.times,super.values, [super.interpolation]){
  defaultInterpolation = InterpolateDiscrete;
  valueBufferType = "Array";
  valueTypeName = 'string';
}