findSlotIndex method

int findSlotIndex(
  1. String slotName
)
inherited

Implementation

int findSlotIndex(String slotName) {
  final List<Slot> slots = this.slots;
  final int n = slots.length;
  for (int i = 0; i < n; i++) {
    if (slots[i].data.name == slotName) return i;
  }
  return -1;
}