ClueCircleTextField constructor

const ClueCircleTextField({
  1. Key? key,
  2. bool enabled = true,
  3. String? initialValue,
  4. void onChanged(
    1. String value
    )?,
  5. void onEditingComplete()?,
  6. String? hintText,
  7. String? errorText,
  8. int errorMaxLines = 1,
  9. int? maxLength = 30,
  10. Widget? suffixIcon,
  11. List<TextInputFormatter>? inputFormatters,
  12. bool obscureText = false,
  13. bool showCounterText = false,
  14. bool useErrorText = false,
})

Creates a ClueCircleTextField.

enabled determines if the text field is enabled. initialValue is the initial text value of the text field. onChanged is the callback function when the text changes. onEditingComplete is the callback function when editing is complete. hintText is the hint text displayed inside the text field. errorText is the error message displayed below the text field. errorMaxLines is the maximum number of lines for the error text. maxLength is the maximum length of the input text. suffixIcon is the widget displayed at the end of the text field. inputFormatters is a list of text input formatters. obscureText determines if the text should be obscured. showCounterText determines if the counter text should be shown. useErrorText determines if the error text should be used.

Implementation

const ClueCircleTextField({
  super.key,
  this.enabled = true,
  this.initialValue,
  this.onChanged,
  this.onEditingComplete,
  this.hintText,
  this.errorText,
  this.errorMaxLines = 1,
  this.maxLength = 30,
  this.suffixIcon,
  this.inputFormatters,
  this.obscureText = false,
  this.showCounterText = false,
  this.useErrorText = false,
});