currentFrame property

String get currentFrame

Get the current visible frame.

Implementation

String get currentFrame {
  if (paused) {
    return frames[0];
  }
  if (_useWallClock) {
    final elapsed = clockStopwatch.elapsedMilliseconds;
    final idx = (elapsed ~/ speed.inMilliseconds) % frames.length;
    return frames[idx];
  } else {
    return frames[_manualTicks % frames.length];
  }
}