MultilineField constructor

const MultilineField({
  1. String? labelPrefix,
  2. String? label,
  3. Widget? labelWidget,
  4. TextEditingController? controller,
  5. String? validator(
    1. String? value
    )?,
  6. int minLines = 2,
  7. int maxLines = 999,
  8. int? maxLength,
  9. List<TextInputFormatter>? inputFormatter,
  10. TextAlign textAlign = TextAlign.start,
  11. void onSaved(
    1. String? value
    )?,
  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 filled = false,
  25. Color? fillColor,
  26. Iterable<String>? autofillHints,
  27. bool readOnly = false,
  28. TextStyle? style,
  29. InputDecoration? decoration,
  30. EdgeInsets padding = const EdgeInsets.all(8),
  31. String? hintText,
  32. EdgeInsets? contentPadding,
  33. String? counterText = '',
  34. Widget? prefix,
  35. Widget? prefixIcon,
  36. Widget? suffix,
  37. Widget? suffixIcon,
  38. void onTap()?,
  39. int? sizeExtraSmall,
  40. int? sizeSmall,
  41. int? sizeMedium,
  42. int? sizeLarge,
  43. int? sizeExtraLarge,
  44. double? minHeight,
  45. 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.filled,
  super.fillColor,
  super.autofillHints,
  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.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,
      );