removeAttachment method

void removeAttachment(
  1. int slotIndex,
  2. String name
)

Removes the attachment in the skin for the specified slot index and name, if any.

Implementation

void removeAttachment(int slotIndex, String name) {
  final nativeName = name.toNativeUtf8(allocator: _allocator);
  _bindings.spine_skin_remove_attachment(_skin, slotIndex, nativeName.cast());
  _allocator.free(nativeName);
}