duration method

double duration(
  1. int frame
)

How long frame is held, in seconds.

Infinite where the frame is never left.

Implementation

double duration(int frame) => _durations[frame];