InputDecoration constructor Null safety

const InputDecoration(
  1. {Widget? icon,
  2. Color? iconColor,
  3. Widget? label,
  4. String? labelText,
  5. TextStyle? labelStyle,
  6. TextStyle? floatingLabelStyle,
  7. String? helperText,
  8. TextStyle? helperStyle,
  9. int? helperMaxLines,
  10. String? hintText,
  11. TextStyle? hintStyle,
  12. TextDirection? hintTextDirection,
  13. int? hintMaxLines,
  14. String? errorText,
  15. TextStyle? errorStyle,
  16. int? errorMaxLines,
  17. FloatingLabelBehavior? floatingLabelBehavior,
  18. FloatingLabelAlignment? floatingLabelAlignment,
  19. @Default(false) bool isCollapsed,
  20. bool? isDense,
  21. EdgeInsets? contentPadding,
  22. Widget? prefixIcon,
  23. BoxConstraints? prefixIconConstraints,
  24. Widget? prefix,
  25. String? prefixText,
  26. TextStyle? prefixStyle,
  27. Color? prefixIconColor,
  28. Widget? suffixIcon,
  29. Widget? suffix,
  30. String? suffixText,
  31. TextStyle? suffixStyle,
  32. Color? suffixIconColor,
  33. BoxConstraints? suffixIconConstraints,
  34. Widget? counter,
  35. String? counterText,
  36. TextStyle? counterStyle,
  37. bool? filled,
  38. Color? fillColor,
  39. Color? focusColor,
  40. Color? hoverColor,
  41. ShapeBorder? errorBorder,
  42. ShapeBorder? focusedBorder,
  43. ShapeBorder? focusedErrorBorder,
  44. ShapeBorder? disabledBorder,
  45. ShapeBorder? enabledBorder,
  46. ShapeBorder? border,
  47. @Default(true) bool enabled,
  48. String? semanticCounterText,
  49. bool? alignLabelWithHint,
  50. BoxConstraints? constraints}
)

Implementation

const factory InputDecoration({
  Widget? icon,
  Color? iconColor,
  Widget? label,
  String? labelText,
  TextStyle? labelStyle,
  TextStyle? floatingLabelStyle,
  String? helperText,
  TextStyle? helperStyle,
  int? helperMaxLines,
  String? hintText,
  TextStyle? hintStyle,
  TextDirection? hintTextDirection,
  int? hintMaxLines,
  String? errorText,
  TextStyle? errorStyle,
  int? errorMaxLines,
  FloatingLabelBehavior? floatingLabelBehavior,
  FloatingLabelAlignment? floatingLabelAlignment,
  @Default(false) bool isCollapsed,
  bool? isDense,
  EdgeInsets? contentPadding,
  Widget? prefixIcon,
  BoxConstraints? prefixIconConstraints,
  Widget? prefix,
  String? prefixText,
  TextStyle? prefixStyle,
  Color? prefixIconColor,
  Widget? suffixIcon,
  Widget? suffix,
  String? suffixText,
  TextStyle? suffixStyle,
  Color? suffixIconColor,
  BoxConstraints? suffixIconConstraints,
  Widget? counter,
  String? counterText,
  TextStyle? counterStyle,
  bool? filled,
  Color? fillColor,
  Color? focusColor,
  Color? hoverColor,
  ShapeBorder? errorBorder,
  ShapeBorder? focusedBorder,
  ShapeBorder? focusedErrorBorder,
  ShapeBorder? disabledBorder,
  ShapeBorder? enabledBorder,
  ShapeBorder? border,
  @Default(true) bool enabled,
  String? semanticCounterText,
  bool? alignLabelWithHint,
  BoxConstraints? constraints,
}) = _InputDecoration;