UserFlowField constructor

UserFlowField({
  1. required String fieldName,
  2. required String label,
  3. required UFieldType type,
  4. bool isRequired = true,
  5. String? hint,
  6. String? placeholder,
  7. String? defaultValue,
  8. bool isDisabled = false,
  9. bool isReadOnly = false,
  10. bool isHidden = false,
  11. UValidationRules? validation,
  12. List<USelectOption>? options,
  13. UDynamicOptionsConfig? dynamicOptions,
  14. UDependencyRule? dependency,
  15. UVisibilityRule? visibility,
  16. String? apiEndpoint,
  17. String? httpMethod = "PUT",
  18. Map<String, String>? apiHeaders,
  19. UApiAction? onApiResponse,
  20. int? debounceMs,
  21. bool autoSave = true,
  22. String? cssClass,
  23. UFieldWidth width = UFieldWidth.full,
  24. int order = 0,
})

Implementation

UserFlowField({
  required this.fieldName,
  required this.label,
  required this.type,
  this.isRequired = true,
  this.hint,
  this.placeholder,
  this.defaultValue,
  this.isDisabled = false,
  this.isReadOnly = false,
  this.isHidden = false,
  this.validation,
  this.options,
  this.dynamicOptions,
  this.dependency,
  this.visibility,
  this.apiEndpoint,
  this.httpMethod = "PUT",
  this.apiHeaders,
  this.onApiResponse,
  this.debounceMs,
  this.autoSave = true,
  this.cssClass,
  this.width = UFieldWidth.full,
  this.order = 0,
});