Headline constructor

const Headline({
  1. Key? key,
  2. TextStyle? textStyle,
  3. double? fontSize,
  4. double? wordSpacing,
  5. double? letterSpacing,
  6. Color? color,
  7. Color? backgroundColor,
  8. FontWeight? fontWeight,
  9. String? fontFamily,
  10. Paint? background,
  11. Paint? foreground,
  12. TextDecoration? decoration,
  13. List<Shadow>? shadows,
  14. TextBaseline? textBaseline,
  15. FontStyle? fontStyle,
  16. TextOverflow? overflow,
  17. TextAlign? textAlign,
  18. required String text,
})

Constructs a Headline widget.

The text parameter is required and represents the text to be displayed in the headline. The other parameters are optional and allow customization of the headline's appearance.

Implementation

const Headline({
  Key? key,
  this.textStyle,
  this.fontSize,
  this.wordSpacing,
  this.letterSpacing,
  this.color,
  this.backgroundColor,
  this.fontWeight,
  this.fontFamily,
  this.background,
  this.foreground,
  this.decoration,
  this.shadows,
  this.textBaseline,
  this.fontStyle,
  this.overflow,
  this.textAlign,
  required this.text,
}) : super(key: key);