ErpFieldConfig constructor

const ErpFieldConfig({
  1. required String key,
  2. required String label,
  3. ErpFieldType type = ErpFieldType.text,
  4. String? hint,
  5. bool required = false,
  6. bool readOnly = false,
  7. bool initialBoolValue = false,
  8. int flex = 1,
  9. List<ErpDropdownItem>? dropdownItems,
  10. String? validator(
    1. String?
    )?,
  11. TextInputType? keyboardType,
  12. bool initialDropValue = false,
  13. int? initialDropIndex,
  14. int? maxLines,
  15. double? fontSize,
  16. Color? fillColor,
  17. Color? readOnlyColor,
  18. Color? focusColor,
  19. double? labelFontSize,
  20. Color? labelColor,
  21. FontWeight? labelFontWeight,
  22. EdgeInsets? contentPadding,
  23. int? sectionIndex,
  24. int? tabIndex,
  25. bool isEntryField = false,
  26. bool isCalcField = false,
  27. bool isEntryRequired = false,
  28. bool isCalculated = false,
  29. String? sectionTitle,
  30. String? helperText,
  31. String? checkboxDbType,
  32. bool showAddButton = false,
})

Implementation

const ErpFieldConfig( {
  required this.key,
  required this.label,
  this.type = ErpFieldType.text,
  this.hint,
  this.required = false,
  this.readOnly = false,
  this.initialBoolValue = false,
  this.flex = 1,
  this.dropdownItems,
  this.validator,
  this.keyboardType,
  this.initialDropValue=false,
  this.initialDropIndex,
  this.maxLines,
  this.fontSize,
  this.fillColor,
  this.readOnlyColor,
  this.focusColor,
  this.labelFontSize,
  this.labelColor,
  this.labelFontWeight,
  this.contentPadding,
  this.sectionIndex,
  this.tabIndex,
  this.isEntryField = false,
  this.isCalcField = false,
  this.isEntryRequired = false,
  this.isCalculated =false,
  this.sectionTitle,
  this.helperText, this.checkboxDbType,  this.showAddButton=false
});