FieldConfig constructor
FieldConfig({
- required String key,
- required String label,
- TextInputType inputType = TextInputType.text,
- bool isRequired = true,
- int? maxLines = 1,
- String? hint,
- Widget? prefix,
- bool isDate = false,
- String? validationRegex,
- String? validationErrorMessage,
- String? matchKey,
- String? matchKeyError,
- String? validator()?,
Implementation
FieldConfig({
required this.key,
required this.label,
this.inputType = TextInputType.text,
this.isRequired = true,
this.maxLines = 1,
this.hint,
this.prefix,
this.isDate = false,
this.validationRegex,
this.validationErrorMessage,
this.matchKey,
this.matchKeyError,
this.validator,
});