setDifficulty method Null safety

void setDifficulty(
  1. String difficulty
)

Implementation

void setDifficulty(String difficulty) {
    this.difficulty = difficulty;
}