MultilineField constructor

const MultilineField({
  1. String? labelPrefix,
  2. String? label,
  3. Widget? labelWidget,
  4. TextEditingController? controller,
  5. FormFieldValidator<String>? validator,
  6. int minLines = 2,
  7. int maxLines = 999,
  8. int? maxLength,
  9. List<TextInputFormatter>? inputFormatter,
  10. TextAlign textAlign = TextAlign.start,
  11. FormFieldSetter<String>? onSaved,
  12. String? initialValue,
  13. bool enabled = true,
  14. AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
  15. ValueChanged<String?>? onChanged,
  16. FocusNode? focusNode,
  17. TextInputAction? textInputAction,
  18. ValueChanged<String?>? onFieldSubmitted,
  19. bool autocorrect = false,
  20. bool enableSuggestions = false,
  21. TextCapitalization textCapitalization = TextCapitalization.none,
  22. EdgeInsets scrollPadding = const EdgeInsets.all(20),
  23. bool enableInteractiveSelection = true,
  24. bool readOnly = false,
  25. TextStyle? style,
  26. InputDecoration? decoration,
  27. EdgeInsets padding = const EdgeInsets.all(8),
  28. String? hintText,
  29. EdgeInsets? contentPadding,
  30. String? counterText = '',
  31. Widget? prefix,
  32. Widget? prefixIcon,
  33. Widget? suffix,
  34. Widget? suffixIcon,
  35. VoidCallback? onTap,
  36. Iterable<String>? autofillHints,
  37. int? sizeExtraSmall,
  38. int? sizeSmall,
  39. int? sizeMedium,
  40. int? sizeLarge,
  41. int? sizeExtraLarge,
  42. double? minHeight,
  43. Key? key,
})

Implementation

const MultilineField({
  super.labelPrefix,
  super.label,
  super.labelWidget,
  super.controller,
  super.validator,
  super.minLines = 2,
  super.maxLines = 999,
  super.maxLength,
  super.inputFormatter,
  super.textAlign,
  super.onSaved,
  super.initialValue,
  super.enabled,
  super.autoValidateMode,
  super.onChanged,
  super.focusNode,
  super.textInputAction,
  super.onFieldSubmitted,
  super.autocorrect = false,
  super.enableSuggestions = false,
  super.textCapitalization,
  super.scrollPadding,
  super.enableInteractiveSelection,
  super.readOnly,
  super.style,
  super.decoration,
  super.padding,
  super.hintText,
  super.contentPadding,
  super.counterText,
  super.prefix,
  super.prefixIcon,
  super.suffix,
  super.suffixIcon,
  super.onTap,
  super.autofillHints,
  super.sizeExtraSmall,
  super.sizeSmall,
  super.sizeMedium,
  super.sizeLarge,
  super.sizeExtraLarge,
  super.minHeight,
  super.key,
}) : assert(
       initialValue == null || controller == null,
       'initialValue or controller must be null.',
     ),
     assert(
       label == null || labelWidget == null,
       'label or labelWidget must be null.',
     ),
     super(keyboard: TextInputType.multiline, obscureText: false);