InputDecoration constructor

const InputDecoration({
  1. Widget? hint,
  2. String? hintText,
  3. TextStyle? hintStyle,
  4. int? hintMaxLines,
  5. String? helperText,
  6. Widget? error,
  7. String? errorText,
  8. TextStyle? errorStyle,
  9. int? errorMaxLines,
  10. Widget? counter,
  11. String? counterText,
  12. TextStyle? counterStyle,
  13. Widget? prefix,
  14. String? prefixText,
  15. TextStyle? prefixStyle,
  16. Widget? suffix,
  17. String? suffixText,
  18. TextStyle? suffixStyle,
  19. Widget? prefixIcon,
  20. Widget? suffixIcon,
  21. BoxConstraints? prefixIconConstraints,
  22. BoxConstraints? suffixIconConstraints,
  23. BoxConstraints? constraints,
  24. EdgeInsetsGeometry? contentPadding,
  25. bool? isDense,
  26. bool? isCollapsed,
  27. bool? filled,
  28. Color? fillColor,
  29. Color? hoverColor,
  30. InputBorder? border,
  31. InputBorder? enabledBorder,
  32. InputBorder? disabledBorder,
  33. InputBorder? focusedBorder,
  34. InputBorder? errorBorder,
  35. InputBorder? focusedErrorBorder,
  36. bool enabled = true,
})

Implementation

const InputDecoration({
  this.hint,
  this.hintText,
  this.hintStyle,
  this.hintMaxLines,
  this.helperText,
  this.error,
  this.errorText,
  this.errorStyle,
  this.errorMaxLines,
  this.counter,
  this.counterText,
  this.counterStyle,
  this.prefix,
  this.prefixText,
  this.prefixStyle,
  this.suffix,
  this.suffixText,
  this.suffixStyle,
  this.prefixIcon,
  this.suffixIcon,
  this.prefixIconConstraints,
  this.suffixIconConstraints,
  this.constraints,
  this.contentPadding,
  this.isDense,
  this.isCollapsed,
  this.filled,
  this.fillColor,
  this.hoverColor,
  this.border,
  this.enabledBorder,
  this.disabledBorder,
  this.focusedBorder,
  this.errorBorder,
  this.focusedErrorBorder,
  this.enabled = true,
});