Subtitle2 constructor
const
Subtitle2(
- String text, {
- Key? key,
- TextStyle? style,
- TextAlign? textAlign,
- InlineSpan? textSpan,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
Text Widget
with the subtitle2 theme style.
return Text(text, style: context.textTheme.subtitle2);
Implementation
const Subtitle2(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);