setAttachment method

void setAttachment(
  1. Attachment? attachment
)

Implementation

void setAttachment(Attachment? attachment) {
  if (this.attachment == attachment) return;
  this.attachment = attachment;
  attachmentTime = bone.skeleton.time;
  attachmentVertices = Float32List(0);
}