Txt.bs constructor

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

Creates a bold txt widget with determined text size.

If the style argument is null, the text will use the style from the closest enclosing DefaultTextStyle.

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

The text parameter must not be null.

Implementation

const Txt.bs(
  this.text,
  this.size, {
  Key? key,
  this.color,
  this.style,
  this.strutStyle,
  this.align,
  this.direction,
  this.locale,
  this.softWrap,
  this.overflow,
  this.scaleFactor,
  this.maxLines,
  this.semanticsLabel,
  this.widthBasis,
  this.fontFamily,
  this.italic = false,
})  : this.baseStyle = TxtStyle.none,
      this.weight = FontWeight.bold,
      super(
        key: key,
      );