getCurrent method
Returns the track entry for the animation currently playing on the track, or null if no animation is currently playing.
Implementation
TrackEntry? getCurrent(int trackIndex) {
final entry = _bindings.spine_animation_state_get_current(_state, trackIndex);
if (entry.address == nullptr.address) return null;
return TrackEntry._(entry, this);
}