createAndSendResult method

  1. @override
void createAndSendResult()
override

This method should be implemented in all the Widgets which are producing an RPResult object.

Implementation

@override
void createAndSendResult() {
  timer?.cancel();

  if (result != null) {
    result?.questionTitle = widget.step.title;
    result?.setResult(_currentQuestionBodyResult);
    blocTask.sendStepResult(result!);
  }
}