Headline4 constructor

const Headline4(
  1. String text, {
  2. Key? key,
  3. TextStyle? style,
  4. TextAlign? textAlign,
  5. InlineSpan? textSpan,
  6. StrutStyle? strutStyle,
  7. TextDirection? textDirection,
  8. Locale? locale,
  9. bool? softWrap,
  10. TextOverflow? overflow,
  11. double? textScaleFactor,
  12. int? maxLines,
  13. String? semanticsLabel,
  14. TextWidthBasis? textWidthBasis,
})

Text Widget with the headline4 theme style.

return Text(text, style: context.textTheme.headline4);

Implementation

const Headline4(this.text,
    {Key? key,
    this.style,
    this.textAlign,
    this.textSpan,
    this.strutStyle,
    this.textDirection,
    this.locale,
    this.softWrap,
    this.overflow,
    this.textScaleFactor,
    this.maxLines,
    this.semanticsLabel,
    this.textWidthBasis})
    : super(key: key);