TextArea constructor

const TextArea({
  1. Key? key,
  2. String? label = 'Description',
  3. bool isRequired = false,
  4. int? characterLimit = 200,
  5. InputControlType type = InputControlType.gray,
  6. int lines = 4,
  7. int? minLines,
  8. IconData? leftIcon,
  9. Widget? leftIconWidget,
  10. String? prefix,
  11. Widget? prefixWidget,
  12. String placeholder = 'Enter description...',
  13. String? value,
  14. TextEditingController? controller,
  15. FocusNode? focusNode,
  16. String? suffix,
  17. Widget? suffixWidget,
  18. ButtonIconGhost? rightButton,
  19. bool isError = false,
  20. bool showErrorMessage = true,
  21. String errorMessage = 'Error Message',
  22. List<String>? errorMessages,
  23. Widget? errorIconWidget,
  24. FormFieldValidator<String>? validator,
  25. FormFieldSetter<String>? onSaved,
  26. AutovalidateMode? autovalidateMode,
  27. bool enabled = true,
  28. bool readOnly = false,
  29. bool autofocus = false,
  30. TextInputType? keyboardType,
  31. List<TextInputFormatter>? inputFormatters,
  32. ValueChanged<String>? onChanged,
  33. ValueChanged<String>? onSubmitted,
  34. VoidCallback? onTap,
})

Creates a TextArea multiline input instance.

Implementation

const TextArea({
  super.key,
  this.label = 'Description',
  this.isRequired = false,
  this.characterLimit = 200,
  this.type = InputControlType.gray,
  this.lines = 4,
  this.minLines,
  this.leftIcon,
  this.leftIconWidget,
  this.prefix,
  this.prefixWidget,
  this.placeholder = 'Enter description...',
  this.value,
  this.controller,
  this.focusNode,
  this.suffix,
  this.suffixWidget,
  this.rightButton,
  this.isError = false,
  this.showErrorMessage = true,
  this.errorMessage = 'Error Message',
  this.errorMessages,
  this.errorIconWidget,
  this.validator,
  this.onSaved,
  this.autovalidateMode,
  this.enabled = true,
  this.readOnly = false,
  this.autofocus = false,
  this.keyboardType,
  this.inputFormatters,
  this.onChanged,
  this.onSubmitted,
  this.onTap,
});