getBoneByName method

Bone? getBoneByName(
  1. dynamic name
)

Implementation

Bone? getBoneByName(name) {
  for (var i = 0, il = bones.length; i < il; i++) {
    var bone = bones[i];

    if (bone.name == name) {
      return bone;
    }
  }

  return null;
}