getTimeCodeIndex method

int getTimeCodeIndex(
  1. String section
)

Implementation

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