TextAreaFormField constructor

TextAreaFormField({
  1. Key? key,
  2. required String label,
  3. String description = '',
  4. String? initialValue,
  5. String? validator(
    1. String?
    )?,
  6. FocusNode? focusNode,
  7. bool focused = false,
  8. int fieldHeight = 3,
  9. Style style = Style.empty,
  10. Style cursorStyle = const Style(modifiers: Modifier.underline),
  11. String placeholder = '',
  12. Style placeholderStyle = const Style(foreground: Color(128, 128, 128)),
})

Creates a TextAreaFormField for multi-line text editing.

Implementation

TextAreaFormField({
  super.key,
  required super.label,
  super.description = '',
  super.initialValue,
  super.validator,
  super.focusNode,
  super.focused = false,
  this.fieldHeight = 3,
  Style style = Style.empty,
  Style cursorStyle = const Style(modifiers: Modifier.underline),
  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,
     );