ErpFieldConfig constructor
const
ErpFieldConfig({
- required String key,
- required String label,
- ErpFieldType type = ErpFieldType.text,
- String? hint,
- bool required = false,
- bool readOnly = false,
- bool initialBoolValue = false,
- int flex = 1,
- List<
ErpDropdownItem> ? dropdownItems, - String? validator()?,
- TextInputType? keyboardType,
- bool initialDropValue = false,
- int? initialDropIndex,
- int? maxLines,
- double? fontSize,
- Color? fillColor,
- Color? readOnlyColor,
- Color? focusColor,
- double? labelFontSize,
- Color? labelColor,
- FontWeight? labelFontWeight,
- EdgeInsets? contentPadding,
- int? sectionIndex,
- int? tabIndex,
- bool isEntryField = false,
- bool isCalcField = false,
- bool isEntryRequired = false,
- bool isCalculated = false,
- String? sectionTitle,
- String? helperText,
- String? checkboxDbType,
- 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
});