CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? placeholder,
  4. IconData? prefixIcon,
  5. Widget? suffix,
  6. bool obscure = false,
  7. TextInputType keyboardType = TextInputType.text,
  8. String? validator(
    1. String?
    )?,
  9. ValueChanged<String>? onChanged,
  10. int maxLines = 1,
})

Implementation

const CustomTextField({
  super.key,
  this.controller,
  this.placeholder,
  this.prefixIcon,
  this.suffix,
  this.obscure = false,
  this.keyboardType = TextInputType.text,
  this.validator,
  this.onChanged,
  this.maxLines = 1,
});