UserFlowField constructor
UserFlowField({
- required String fieldName,
- required String label,
- required UFieldType type,
- bool isRequired = true,
- String? hint,
- String? placeholder,
- String? defaultValue,
- bool isDisabled = false,
- bool isReadOnly = false,
- bool isHidden = false,
- UValidationRules? validation,
- List<
USelectOption> ? options, - UDynamicOptionsConfig? dynamicOptions,
- UDependencyRule? dependency,
- UVisibilityRule? visibility,
- String? apiEndpoint,
- String? httpMethod = "PUT",
- Map<
String, String> ? apiHeaders, - UApiAction? onApiResponse,
- int? debounceMs,
- bool autoSave = true,
- String? cssClass,
- UFieldWidth width = UFieldWidth.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 = UFieldWidth.full,
this.order = 0,
});