ScaleQuestion.fromVisualAnalogueQuestion constructor

ScaleQuestion.fromVisualAnalogueQuestion(
  1. VisualAnalogueQuestion question
)

Implementation

factory ScaleQuestion.fromVisualAnalogueQuestion(
  VisualAnalogueQuestion question,
) {
  final result = ScaleQuestion()
    ..id = question.id
    ..prompt = question.prompt
    ..rationale = question.rationale
    ..conditional = question.conditional
    ..minimum = question.minimum
    ..maximum = question.maximum
    ..step = question.step
    ..initial = question.initial
    ..minimumColor = question.minimumColor
    ..maximumColor = question.maximumColor
    ..minimumAnnotation = question.minimumAnnotation
    ..maximumAnnotation = question.maximumAnnotation;
  return result;
}