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. int? maxLines,
  13. double? fontSize,
  14. Color? fillColor,
  15. Color? readOnlyColor,
  16. Color? focusColor,
  17. double? labelFontSize,
  18. Color? labelColor,
  19. FontWeight? labelFontWeight,
  20. EdgeInsets? contentPadding,
  21. int? sectionIndex,
  22. int? tabIndex,
  23. bool isEntryField = false,
  24. bool isCalcField = false,
  25. bool isEntryRequired = false,
  26. bool isCalculated = false,
  27. String? sectionTitle,
  28. String? helperText,
  29. String? checkboxDbType,
})

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.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
});