ControlConfig constructor

ControlConfig({
  1. String? decoration,
  2. dynamic description,
  3. String? helpText,
  4. String? hintText,
  5. String? fields,
  6. String? title,
  7. String? key,
  8. String? type,
  9. String? label,
  10. Function? validator,
  11. IconData? icon,
  12. Color? iconColor,
  13. dynamic value,
  14. String? placeholder,
  15. bool isRequired = false,
  16. bool? isEditable = true,
  17. bool hiddenLabel = true,
  18. TextInputType? inputType,
  19. TextInputFormatter? inputFormatters,
  20. QuestionConfig? questionConfig,
  21. bool isVisible = true,
  22. bool isEnabled = true,
  23. Map? dropDownItems,
  24. Function? onChange,
  25. List<String?>? selectedValues = const [],
  26. bool isMultiselect = false,
  27. bool isGrouped = false,
  28. List? groupedListItems = const [],
  29. bool showHeaderToggleSwitch = false,
  30. bool showSubHeaderToggleSwitch = false,
  31. bool headerToggleSwitchSelected = false,
  32. bool showMainHeader = true,
  33. dynamic subFormValue,
  34. String? routeName,
  35. bool hideModalTitle = false,
  36. dynamic extraParams,
  37. bool detailedDescription = false,
  38. bool showGroupItemTitle = true,
  39. bool? isValid,
  40. int? maxCharacters,
  41. int? maxLines,
  42. dynamic alreadyExists = const [],
  43. ExtraValidationSubForm? extraValidation,
  44. String saveBtnText = 'SAVE',
  45. 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,
});