canSubmit method

bool canSubmit()

Implementation

bool canSubmit() {
  if (askUserData?.choiceType == AskUserChoiceType.choice) {
    return selectedOptions.isNotEmpty;
  }
  if (askUserData?.choiceType == AskUserChoiceType.text) {
    return customOptionText.value.trim() != "";
  }
  return true;
}