setCorrectAnswer method Null safety

void setCorrectAnswer(
  1. String correctAnswer
)

Implementation

void setCorrectAnswer(String correctAnswer) {
    this.correctAnswer = correctAnswer;
}