TextAreaFormField constructor
TextAreaFormField({
- required String label,
- String description = '',
- String? initialValue,
- String? validator()?,
- bool focused = false,
- int fieldHeight = 3,
- Style style = Style.empty,
- Style cursorStyle = const Style(modifiers: Modifier.reverse),
- String placeholder = '',
- Style placeholderStyle = const Style(foreground: Color(128, 128, 128)),
Creates a TextAreaFormField for multi-line text editing.
Implementation
TextAreaFormField({
required super.label,
super.description = '',
super.initialValue,
super.validator,
super.focused = false,
this.fieldHeight = 3,
Style style = Style.empty,
Style cursorStyle = const Style(modifiers: Modifier.reverse),
String placeholder = '',
Style placeholderStyle = const Style(foreground: Color(128, 128, 128)),
}) : _input = TextField(
initialText: initialValue ?? '',
multiline: true,
style: style,
cursorStyle: cursorStyle,
placeholder: placeholder,
placeholderStyle: placeholderStyle,
focused: focused,
);