ControlConfig constructor
ControlConfig({
- String? decoration,
- dynamic description,
- String? helpText,
- String? hintText,
- String? fields,
- String? title,
- String? key,
- String? type,
- String? label,
- Function? validator,
- IconData? icon,
- Color? iconColor,
- dynamic value,
- String? placeholder,
- bool isRequired = false,
- bool? isEditable = true,
- TextInputType? inputType,
- TextInputFormatter? inputFormatters,
- QuestionConfig? questionConfig,
- bool isVisible = true,
- bool isEnabled = true,
- Map? dropDownItems,
- Function? onChange,
- List<
String?> ? selectedValues = const [], - bool isMultiselect = false,
- bool isGrouped = false,
- List? groupedListItems = const [],
- bool showHeaderToggleSwitch = false,
- bool showSubHeaderToggleSwitch = false,
- bool headerToggleSwitchSelected = false,
- bool showMainHeader = true,
- dynamic subFormValue,
- String? routeName,
- bool hideModalTitle = false,
- dynamic extraParams,
- bool detailedDescription = false,
- bool showGroupItemTitle = true,
- bool? isValid,
- int? maxCharacters,
- int? maxLines,
- dynamic alreadyExists = const [],
- ExtraValidationSubForm? extraValidation,
- String saveBtnText = 'SAVE',
- Function? onSave,
Implementation
ControlConfig({
this.decoration,
this.description,
this.helpText,
this.hintText,
this.fields,
this.title,
this.key,
this.type,
this.label,
this.validator,
this.icon,
this.iconColor,
this.value,
this.placeholder,
this.isRequired = false,
this.isEditable = true,
this.hiddenLabel = true,
this.inputType,
this.inputFormatters,
this.questionConfig,
this.isVisible = true,
this.isEnabled = true,
this.dropDownItems,
this.onChange,
this.selectedValues = const [],
this.isMultiselect = false,
this.isGrouped = false,
this.groupedListItems = const [],
this.showHeaderToggleSwitch = false,
this.showSubHeaderToggleSwitch = false,
this.headerToggleSwitchSelected = false,
this.showMainHeader = true,
this.subFormValue,
this.routeName,
this.hideModalTitle = false,
this.extraParams,
this.detailedDescription = false,
this.showGroupItemTitle = true,
this.isValid,
this.maxCharacters,
this.maxLines,
this.alreadyExists = const [],
this.extraValidation,
this.saveBtnText = 'SAVE',
this.onSave,
});