StepResult.fromQuestion constructor
StepResult.fromQuestion({
- required QuestionResult questionResult,
Implementation
factory StepResult.fromQuestion({required QuestionResult questionResult}) {
return StepResult(
id: questionResult.id,
startDate: questionResult.startDate,
endDate: questionResult.endDate,
results: [questionResult],
);
}