getQuestionByIndex static method

Question getQuestionByIndex(
  1. int index
)

Implementation

static Question getQuestionByIndex(int index) {
  if (index < 0 || index >= _questions.length) {
    throw ArgumentError("题目索引超出范围: $index");
  }
  return _questions[index];
}