indexOfLabel method

int indexOfLabel(
  1. String label
)

Returns the index of the element associated with label.

Implementation

int indexOfLabel(String label) {
  assert(hasLabel(label),
      'This list doesn\'t contain an element assocaited with [label].');
  return _labels.indexOf(label);
}