findBone method

Bone? findBone(
  1. String boneName
)
inherited

Implementation

Bone? findBone(String boneName) {
  final List<Bone> bones = this.bones;
  final int n = bones.length;
  for (int i = 0; i < n; i++) {
    final Bone bone = bones[i];
    if (bone.data.name == boneName) return bone;
  }
  return null;
}