findBone method
Finds a bone by comparing each bone's name. It is more efficient to cache the results of this method than to call it multiple times.
Implementation
BoneData? findBone(String name) {
final nativeName = name.toNativeUtf8(allocator: _allocator);
final bone = _bindings.spine_skeleton_data_find_bone(_data, nativeName.cast());
_allocator.free(nativeName);
if (bone.address == nullptr.address) return null;
return BoneData._(bone);
}