FormBuilder constructor

FormBuilder({
  1. required Map<String, dynamic> initialData,
  2. required int index,
  3. InputDecoration? textfieldDecoration,
  4. double? textFieldWidth,
  5. String? multipleimage,
  6. String? dropdownImage,
  7. String? checkboxImage,
  8. String? dateImage,
  9. String? textImage,
  10. String? remarkImage,
  11. String? submitButtonText,
  12. bool showIcon = false,
  13. required Function onSubmit,
  14. bool showIndex = true,
  15. BoxDecoration? submitButtonDecoration,
  16. double? submitButtonWidth = 0.5,
  17. TextStyle? submitTextDecoration,
  18. String? title,
  19. String? description,
  20. TextStyle? descriptionStyle,
  21. TextStyle? titleStyle,
  22. CrossAxisAlignment widgetCrossAxisAlignment = CrossAxisAlignment.start,
  23. TextStyle? titleTextDecoration,
  24. TextStyle? descriptionTextDecoration,
})

Implementation

FormBuilder({
  required this.initialData,
  required this.index,
  this.textfieldDecoration, //adds inputdecoration to textfields
  this.textFieldWidth, //to change the width of textField
  this.multipleimage, //adds  image for case 'multiple'
  this.dropdownImage, //adds  image for case 'dropdown'
  this.checkboxImage, //adds  image for case 'checkbox'
  this.dateImage, //adds  image for case 'date'
  this.textImage, //adds  image for case 'text'
  this.remarkImage, //adds image for remarks
  this.submitButtonText,
  this.showIcon = false, //to enable or disable question icon
  required this.onSubmit,
  this.showIndex = true,
  this.submitButtonDecoration,
  this.submitButtonWidth = 0.5,
  this.submitTextDecoration,
  this.title,
  this.description,
  this.descriptionStyle,
  this.titleStyle,
  this.widgetCrossAxisAlignment = CrossAxisAlignment.start,
  this.titleTextDecoration,
  this.descriptionTextDecoration,
});