getIndex method

int getIndex(
  1. String section
)

Implementation

int getIndex(String section) {
  for (int i = 0; i < length; i++) {
    if (this[i].title == section) return i;
  }
  return -1;
}