Headline constructor
const
Headline({
- Key? key,
- TextStyle? textStyle,
- double? fontSize,
- double? wordSpacing,
- double? letterSpacing,
- Color? color,
- Color? backgroundColor,
- FontWeight? fontWeight,
- String? fontFamily,
- Paint? background,
- Paint? foreground,
- TextDecoration? decoration,
- List<
Shadow> ? shadows, - TextBaseline? textBaseline,
- FontStyle? fontStyle,
- TextOverflow? overflow,
- TextAlign? textAlign,
- 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);