TextArea constructor

const TextArea({
  1. Key? key,
  2. bool expandableHeight = false,
  3. bool expandableWidth = false,
  4. double initialHeight = 100,
  5. double initialWidth = double.infinity,
  6. ValueChanged<double>? onHeightChanged,
  7. ValueChanged<double>? onWidthChanged,
  8. TextEditingController? controller,
  9. bool filled = false,
  10. String? placeholder,
  11. bool border = true,
  12. Widget? leading,
  13. Widget? trailing,
  14. EdgeInsetsGeometry? padding,
  15. ValueChanged<String>? onSubmitted,
  16. VoidCallback? onEditingComplete,
  17. FocusNode? focusNode,
  18. VoidCallback? onTap,
  19. bool enabled = true,
  20. bool readOnly = false,
  21. bool obscureText = false,
  22. String obscuringCharacter = '•',
  23. String? initialValue,
  24. int? maxLength,
  25. MaxLengthEnforcement? maxLengthEnforcement,
  26. BorderRadius? borderRadius,
  27. TextAlign textAlign = TextAlign.start,
  28. double minWidth = 100,
  29. double minHeight = 100,
  30. double maxWidth = double.infinity,
  31. double maxHeight = double.infinity,
})

Implementation

const TextArea({
  super.key,
  this.expandableHeight = false,
  this.expandableWidth = false,
  this.initialHeight = 100,
  this.initialWidth = double.infinity,
  this.onHeightChanged,
  this.onWidthChanged,
  this.controller,
  this.filled = false,
  this.placeholder,
  this.border = true,
  this.leading,
  this.trailing,
  this.padding,
  this.onSubmitted,
  this.onEditingComplete,
  this.focusNode,
  this.onTap,
  this.enabled = true,
  this.readOnly = false,
  this.obscureText = false,
  this.obscuringCharacter = '•',
  this.initialValue,
  this.maxLength,
  this.maxLengthEnforcement,
  this.borderRadius,
  this.textAlign = TextAlign.start,
  this.minWidth = 100,
  this.minHeight = 100,
  this.maxWidth = double.infinity,
  this.maxHeight = double.infinity,
});