CircularTextField constructor

CircularTextField({
  1. Key? key,
  2. TextEditingController? textEditingController,
  3. required IconData icon,
  4. String? hintText,
  5. Color? hintTextColor,
  6. required double width,
  7. Color? backgroundColor,
  8. Color? iconColor,
  9. Color? enabledIconColor,
  10. Color? cursorColor,
  11. TextInputType? keyboardType,
  12. TextStyle? style,
  13. bool? obscureText,
  14. required bool hasIcon,
  15. dynamic onChanged(
    1. String
    )?,
  16. dynamic onEditingComplete()?,
  17. dynamic onSubmitted(
    1. String
    )?,
  18. dynamic onTap()?,
})

Implementation

CircularTextField({
  Key? key,
  this.textEditingController,
  required this.icon,
  this.hintText,
  this.hintTextColor,
  required this.width,
  this.backgroundColor,
  this.iconColor,
  this.enabledIconColor,
  this.cursorColor,
  this.keyboardType,
  this.style,
  this.obscureText,
  required this.hasIcon,
  this.onChanged,
  this.onEditingComplete,
  this.onSubmitted,
  this.onTap,
})  : assert(width >= 150),
      super(key: key);