AppTextField constructor

const AppTextField({
  1. Key? key,
  2. required String label,
  3. String? initialValue,
  4. String? hint,
  5. IconData? prefixIcon,
  6. Widget? suffixIcon,
  7. ValueChanged<String>? onChanged,
  8. TextInputType? keyboardType,
  9. bool obscureText = false,
  10. String? errorText,
})

Implementation

const AppTextField({
  super.key,
  required this.label,
  this.initialValue,
  this.hint,
  this.prefixIcon,
  this.suffixIcon,
  this.onChanged,
  this.keyboardType,
  this.obscureText = false,
  this.errorText,
});