getCorrectAnswer method Null safety

String getCorrectAnswer()

Implementation

String getCorrectAnswer() {
    return correctAnswer;
}