UserFlowField constructor
UserFlowField({
- required String fieldName,
- required String label,
- required FieldType type,
- bool isRequired = true,
- String? hint,
- String? placeholder,
- String? defaultValue,
- bool isDisabled = false,
- bool isReadOnly = false,
- bool isHidden = false,
- ValidationRules? validation,
- List<
SelectOption> ? options, - DynamicOptionsConfig? dynamicOptions,
- DependencyRule? dependency,
- VisibilityRule? visibility,
- String? apiEndpoint,
- String? httpMethod = "PUT",
- Map<
String, String> ? apiHeaders, - ApiAction? onApiResponse,
- int? debounceMs,
- bool autoSave = true,
- String? cssClass,
- FieldWidth width = FieldWidth.full,
- 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,
});