TextFieldWithDelete constructor

const TextFieldWithDelete({
  1. Key? key,
  2. FocusNode? focusNode,
  3. required TextEditingController controller,
  4. bool obscureText = false,
  5. bool error = false,
  6. String? errorMessage,
  7. double fontSize = 14,
  8. FontWeight fontWeight = FontWeight.normal,
  9. TextInputAction? textInputAction,
  10. double deleteRightPadding = 0,
  11. double errorMessageMarginTop = 0,
  12. bool hideUnderline = false,
  13. bool enabled = true,
  14. List<TextInputFormatter>? inputFormatters,
  15. String? texthint,
  16. TextInputType? keyboardType,
  17. VoidCallback? onEditingComplete,
  18. dynamic validatorCallback(
    1. String? errorMessage
    )?,
  19. Widget? leftImage,
  20. dynamic onTapDelete()?,
  21. int? showMaxCount,
  22. bool? autofocus,
})

Implementation

const TextFieldWithDelete(
    {Key? key,
    this.focusNode,
    required this.controller,
    this.obscureText = false,
    this.error = false,
    this.errorMessage,
    this.fontSize = 14,
    this.fontWeight = FontWeight.normal,
    this.textInputAction,
    this.deleteRightPadding = 0,
    this.errorMessageMarginTop = 0,
    this.hideUnderline = false,
    this.enabled = true,
    this.inputFormatters,
    this.texthint,
    this.keyboardType,
    this.onEditingComplete,
    this.validatorCallback,
    this.leftImage,
    this.onTapDelete,
    this.showMaxCount,
    this.autofocus})
    : super(key: key);