QuestionAnswer constructor

QuestionAnswer(
  1. {required String question,
  2. required int solution}
)

Constructor for creating a QuestionAnswer instance.

Both question and solution are required.

Implementation

QuestionAnswer