HeroText constructor
const
HeroText(
- String? text, {
- Key? key,
- required Object? tag,
- required ViewState viewState,
- double smallFontSize = 15.0,
- double largeFontSize = 48.0,
- TextStyle? style,
- TextAlign textAlign = TextAlign.center,
- TextDirection? textDirection,
- double? textScaleFactor,
- int maxLines = 1,
- Locale? locale,
- StrutStyle? strutStyle,
Implementation
const HeroText(
this.text, {
super.key,
required this.tag,
required this.viewState,
this.smallFontSize = 15.0,
this.largeFontSize = 48.0,
this.style,
this.textAlign = TextAlign.center,
this.textDirection,
this.textScaleFactor,
this.maxLines = 1,
this.locale,
this.strutStyle,
}) : assert(
viewState == ViewState.shrunk || viewState == ViewState.enlarged,
);