getAttachment method

Attachment<Pointer<NativeType>>? getAttachment()

The current attachment for the slot, or null if the slot has no attachment.

Implementation

Attachment? getAttachment() {
  final attachment = _bindings.spine_slot_get_attachment(_slot);
  if (attachment.address == nullptr.address) return null;
  return Attachment._toSubclass(attachment);
}