totalDuration method

double totalDuration()

Computes the total duration of this animation (before it's done or repeats).

Implementation

double totalDuration() {
  return frames.map((f) => f.stepTime).reduce((a, b) => a + b);
}