CustomField constructor

const CustomField({
  1. Key? key,
  2. required String label,
  3. IconData? icon,
  4. bool isPassword = false,
  5. TextInputType keyboardType = TextInputType.text,
  6. required dynamic onChanged(
    1. String
    ),
  7. String value = '',
  8. bool? isNotCapitalize = false,
  9. int? maxSize,
  10. int maxLines = 1,
  11. required TextInputAction action,
})

Take in required parameter a Label, a fonction onchange, action.

Implementation

const CustomField({
  super.key,
  required this.label,
  this.icon,
  this.isPassword = false,
  this.keyboardType = TextInputType.text,
  required this.onChanged,
  this.value = '',
  this.isNotCapitalize = false,
  this.maxSize,
  this.maxLines = 1,
  required this.action,
});