FieldConfig constructor

FieldConfig({
  1. required String key,
  2. required String label,
  3. TextInputType inputType = TextInputType.text,
  4. bool isRequired = true,
  5. int? maxLines = 1,
  6. String? hint,
  7. Widget? prefix,
  8. bool isDate = false,
  9. String? validationRegex,
  10. String? validationErrorMessage,
  11. String? matchKey,
  12. String? matchKeyError,
  13. String? validator(
    1. String?
    )?,
})

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