findBone method

BoneData? findBone(
  1. String boneName
)

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.

Returns May be NULL.

Implementation

BoneData? findBone(String boneName) {
  final result = SpineBindings.bindings.spine_skeleton_data_find_bone(_ptr, boneName.toNativeUtf8().cast<Char>());
  return result.address == 0 ? null : BoneData.fromPointer(result);
}