isValid property

bool isValid

Implementation

bool get isValid => (() {
      bool status = true;
      this.data.forEach((key, value) {
        bool _status = true;

        if (this.validationRequirements.containsKey(key) &&
            this.validationRequirements[key]) {
          if (this.data[key] == null || this.data[key] == "") {
            status = false;
            _status = false;
          } else if (this.data[key] is YekongaForm) {
            status = this.data[key].isValid;
          }
        }

        if (this.validationFunctions.containsKey(key)) {
          this.validationFunctions[key](_status);
        }
      });

      return status;
    }());