InputDecoration constructor

const InputDecoration({
  1. String? labelText,
  2. TextStyle? labelStyle,
  3. String? helperText,
  4. TextStyle? helperStyle,
  5. String? placeholderText,
  6. Color? placeholderColor,
  7. BorderData? border,
  8. Color? hoverBorderColor,
  9. Color? focusBorderColor,
  10. TextStyle? errorStyle,
  11. TextStyle? inputStyle,
  12. EdgeInsets? padding,
  13. EdgeInsets? margin,
})

Creates an InputDecoration instance.

Implementation

const InputDecoration({
  this.labelText,
  this.labelStyle,
  this.helperText,
  this.helperStyle,
  this.placeholderText,
  this.placeholderColor,
  this.border,
  this.hoverBorderColor,
  this.focusBorderColor,
  this.errorStyle,
  this.inputStyle,
  this.padding,
  this.margin,
});