getRootBone method

Bone? getRootBone()

Returns the root bone, or null if the skeleton has no bones.

Implementation

Bone? getRootBone() {
  final bone = _bindings.spine_skeleton_get_root_bone(_skeleton);
  if (bone.address == nullptr.address) return null;
  return Bone._(bone);
}