CJClearButtonTextField constructor

const CJClearButtonTextField({
  1. Key? key,
  2. String? text = '',
  3. TextStyle? style,
  4. Color? textColor = Colors.black,
  5. String? placeholder = '请输入',
  6. Color? placeholderColor,
  7. bool? allowShowClear = false,
  8. bool? obscureText,
  9. List<TextInputFormatter>? inputFormatters,
  10. TextInputType? keyboardType,
  11. TextEditingController? controller,
  12. TextInputAction? textInputAction,
  13. FocusNode? focusNode,
  14. ValueChanged<String>? onChanged,
  15. ValueChanged<String>? onSubmitted,
})

Implementation

const CJClearButtonTextField({
  Key? key,
  this.text = '',
  this.style,
  this.textColor = Colors.black,
  this.placeholder = '请输入',
  this.placeholderColor,
  this.allowShowClear = false,
  this.obscureText,
  this.inputFormatters,
  this.keyboardType,
  this.controller,
  this.textInputAction,
  this.focusNode,
  this.onChanged,
  this.onSubmitted,
}) : super(key: key);