getAttachment method

Attachment? getAttachment(
  1. int slotIndex,
  2. String name
)

Implementation

Attachment? getAttachment(int slotIndex, String name) {
  if (slotIndex >= attachments.length) return null;
  return attachments[slotIndex]?[name];
}