CustomInput constructor

const CustomInput({
  1. Key? key,
  2. required TextEditingController controller,
  3. required String labelText,
  4. required String hintText,
  5. TextInputType keyboardType = TextInputType.text,
  6. bool obscureText = false,
  7. required void onChanged(
    1. String
    ),
  8. IconData? prefixIcon,
  9. String? errorText,
})

Implementation

const CustomInput({
  super.key,
  required this.controller,
  required this.labelText,
  required this.hintText,
  this.keyboardType = TextInputType.text,
  this.obscureText = false,
  required this.onChanged,
  this.prefixIcon,
  this.errorText,
});