UserTextField constructor

const UserTextField({
  1. Key? key,
  2. required TextEditingController controller,
  3. required String hint,
  4. required IconData prefixIcon,
  5. bool isPassword = false,
  6. bool obscureText = false,
  7. VoidCallback? onToggleVisibility,
  8. TextInputType keyboardType = TextInputType.text,
})

Implementation

const UserTextField({
  super.key,
  required this.controller,
  required this.hint,
  required this.prefixIcon,
  this.isPassword = false,
  this.obscureText = false,
  this.onToggleVisibility,
  this.keyboardType = TextInputType.text,
});