discontinuedPackage esotericsoftware_spine_flutter has been discontinued and replaced by spine_flutter.
setAttachment method
void
setAttachment(
- String slotName,
- String attachmentName
)
Implementation
void setAttachment(String slotName, String attachmentName) {
final slotNameNative = slotName.toNativeUtf8(allocator: _allocator);
final attachmentNameNative = attachmentName.toNativeUtf8(allocator: _allocator);
_bindings.spine_skeleton_set_attachment(_skeleton, slotNameNative.cast(), attachmentNameNative.cast());
_allocator.free(slotNameNative);
_allocator.free(attachmentNameNative);
}