Txt.bodyText2 constructor

const Txt.bodyText2(
  1. String text, {
  2. Key? key,
  3. TextStyle? style,
  4. StrutStyle? strutStyle,
  5. TextAlign? align,
  6. TextDirection? direction,
  7. Locale? locale,
  8. bool? softWrap,
  9. TextOverflow? overflow,
  10. double? scaleFactor,
  11. int? maxLines,
  12. String? semanticsLabel,
  13. TextWidthBasis? widthBasis,
  14. double? size,
  15. Color? color,
  16. FontWeight? weight,
  17. String? fontFamily,
  18. bool italic = false,
})

Creates a txt widget with bodyText2 theme.

The style parameter is used to override theme properties.

The parameters size, color, weight, fontFamily and italic overrides the style properties.

The text parameter must not be null.

Implementation

const Txt.bodyText2(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.weight,
    this.fontFamily,
    this.italic = false})
    : this.baseStyle = TxtStyle.bodyText2,
      super(
        key: key,
      );