dispose method
void
dispose()
Disposes the skeleton drawable's resources. If the skeleton drawable owns the atlas and skeleton data, they are disposed as well. Must be called when the skeleton drawable is no longer in use.
Implementation
void dispose() {
if (_disposed) return;
_disposed = true;
if (_ownsAtlasAndSkeletonData) {
atlas.dispose();
skeletonData.dispose();
}
_bindings.spine_skeleton_drawable_dispose(_drawable);
}