UserFlowField constructor

UserFlowField({
  1. required String fieldName,
  2. required String label,
  3. required FieldType 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. ValidationRules? validation,
  12. List<SelectOption>? options,
  13. DynamicOptionsConfig? dynamicOptions,
  14. DependencyRule? dependency,
  15. VisibilityRule? visibility,
  16. String? apiEndpoint,
  17. String? httpMethod = "PUT",
  18. Map<String, String>? apiHeaders,
  19. ApiAction? onApiResponse,
  20. int? debounceMs,
  21. bool autoSave = true,
  22. String? cssClass,
  23. FieldWidth width = FieldWidth.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 = FieldWidth.full,
  this.order = 0,
});