isOn property

bool get isOn

Implementation

bool get isOn {
  if (this.anyOf.isNull || this.anyOf.values.isEmpty) {
    return true;
  }
  if (this.anyOf.isType(bool)) {
    return (this.anyOf.values[this.anyOf.types.indexOf(bool)] as bool) ==
        true;
  }
  return (this.anyOf.values[
              this.anyOf.types.indexOf(SurveyShowQuestionNumbersAnyOf)]
          as SurveyShowQuestionNumbersAnyOf) ==
      SurveyShowQuestionNumbersAnyOf.on_;
}