Bone.from constructor

Bone.from(
  1. Bone bone,
  2. Bone? parent
)

Copy constructor. Does not copy the children bones.

Implementation

factory Bone.from(Bone bone, Bone? parent) {
  final ptr = SpineBindings.bindings
      .spine_bone_create2(bone.nativePtr.cast(), parent?.nativePtr.cast() ?? Pointer.fromAddress(0));
  return Bone.fromPointer(ptr);
}