clipStartTime method

Duration clipStartTime(
  1. int index
)

Project offset at which clip index starts.

Implementation

Duration clipStartTime(int index) {
  var offset = Duration.zero;
  for (var i = 0; i < index && i < clips.length; i++) {
    offset += clips[i].effectiveDuration;
  }
  return offset;
}