TextInput constructor

const TextInput({
  1. String? placeholder,
  2. TextInputType type = TextInputType.text,
  3. ComponentSize size = ComponentSize.md,
  4. bool disabled = false,
  5. bool required = false,
  6. bool readOnly = false,
  7. String? value,
  8. String? name,
  9. String? id,
  10. Widget? prefix,
  11. Widget? suffix,
  12. String? error,
  13. String? helperText,
  14. String? label,
  15. void onChange(
    1. String
    )?,
  16. void onInput(
    1. String
    )?,
  17. void onFocus()?,
  18. void onBlur()?,
  19. void onSubmit(
    1. String
    )?,
  20. ArcaneInteraction? onChangeAction,
  21. ArcaneInteraction? onSubmitAction,
  22. String? formId,
  23. String? fieldName,
  24. Map<String, String>? attributes,
  25. bool fullWidth = false,
  26. Key? key,
})

Implementation

const TextInput({
  this.placeholder,
  this.type = TextInputType.text,
  this.size = ComponentSize.md,
  this.disabled = false,
  this.required = false,
  this.readOnly = false,
  this.value,
  this.name,
  this.id,
  this.prefix,
  this.suffix,
  this.error,
  this.helperText,
  this.label,
  void Function(String)? onChange,
  void Function(String)? onInput,
  this.onFocus,
  this.onBlur,
  this.onSubmit,
  this.onChangeAction,
  this.onSubmitAction,
  this.formId,
  this.fieldName,
  this.attributes,
  this.fullWidth = false,
  super.key,
}) : _onChange = onChange ?? onInput;