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 repeatedly.
Implementation
Bone? findBone(String boneName) {
final nameNative = boneName.toNativeUtf8(allocator: _allocator);
final bone = _bindings.spine_skeleton_find_bone(_skeleton, nameNative.cast());
_allocator.free(nameNative);
if (bone.address == nullptr.address) return null;
return Bone._(bone);
}