getParent method

Bone? getParent()

The parent bone, or null if this is the root bone.

Implementation

Bone? getParent() {
  final parent = _bindings.spine_bone_get_parent(_bone);
  if (parent.address == nullptr.address) return null;
  return Bone._(parent);
}