AnimationClip constructor

AnimationClip(
  1. String name, [
  2. num duration = -1,
  3. List<KeyframeTrack> tracks = const <KeyframeTrack>[],
  4. int blendMode = NormalAnimationBlendMode,
])

Implementation

AnimationClip(this.name,
    [this.duration = -1, this.tracks = const <KeyframeTrack>[], this.blendMode = NormalAnimationBlendMode]) {
  uuid = MathUtils.generateUUID();

  // this means it should figure out its duration by scanning the tracks
  if (duration < 0) {
    resetDuration();
  }
}