getFormProperties method

List<FormPropertyValue> getFormProperties()

Implementation

List<FormPropertyValue> getFormProperties() {
  var result = <FormPropertyValue>[];
  var formElements = getFormElementIterator<FormElement>(form).toList();

  formElements.forEach((fe) {
    var properties = fe.getProperties();
    properties.forEach((name, propVal) {
      if (propVal is MutableProperty &&
          !(propVal is Property<ExpressionProviderElement>) &&
          !(propVal is Property<List<ExpressionProviderElement>>)) {
        result.add(FormPropertyValue(fe.id!, name, propVal.value.toString()));
      }
    });
  });

  return result;
}