duration property

double get duration

The duration of the animation in seconds, which is usually the highest time of all frames in the timeline. The duration is used to know when it has completed and when it should loop back to the start.

Implementation

double get duration {
  final result = SpineBindings.bindings.spine_animation_get_duration(_ptr);
  return result;
}
set duration (double value)

Implementation

set duration(double value) {
  SpineBindings.bindings.spine_animation_set_duration(_ptr, value);
}