addClip method

dynamic addClip(
  1. dynamic rawClip
)

Implementation

addClip(rawClip) {
  var tracks = [];

  var scope = this;
  rawClip["layer"].forEach((rawTracks) {
    tracks.addAll(scope.generateTracks(rawTracks));
  });
  return new AnimationClip(
      rawClip["name"], -1, List<KeyframeTrack>.from(tracks));
}