Txt.bi constructor
const
Txt.bi(
- String text, {
- Key? key,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? align,
- TextDirection? direction,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- double? scaleFactor,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? widthBasis,
- double? size,
- Color? color,
- String? fontFamily,
Creates a txt widget with bold and italic text.
If the style argument is null, the text will use the style from the closest enclosing DefaultTextStyle.
The parameters size, color, and fontFamily overrides the style properties.
The text parameter must not be null.
Implementation
const Txt.bi(this.text,
{Key? key,
this.style,
this.strutStyle,
this.align,
this.direction,
this.locale,
this.softWrap,
this.overflow,
this.scaleFactor,
this.maxLines,
this.semanticsLabel,
this.widthBasis,
this.size,
this.color,
this.fontFamily})
: this.baseStyle = TxtStyle.none,
this.italic = true,
this.weight = FontWeight.bold,
super(
key: key,
);