ArcaneTextInput constructor

const ArcaneTextInput({
  1. String? placeholder,
  2. InputType type = dom.InputType.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. Component? prefix,
  11. Component? 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. bool fullWidth = false,
  21. Key? key,
})

Implementation

const ArcaneTextInput({
  this.placeholder,
  this.type = dom.InputType.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.fullWidth = false,
  super.key,
}) : _onChange = onChange ?? onInput;