BText constructor

const BText(
  1. String text, {
  2. Key? key,
  3. GestureRecognizer? recognizer,
  4. String? semanticsLabel,
  5. StrutStyle? strutStyle,
  6. TextAlign? textAlign,
  7. TextDirection? textDirection,
  8. Locale? locale,
  9. bool? softWrap,
  10. TextOverflow? overflow,
  11. double? textScaleFactor,
  12. int? maxLines,
  13. TextWidthBasis? textWidthBasis,
  14. TextStyle? style,
  15. bool inherit = true,
  16. Color? color,
  17. Color? backgroundColor,
  18. String? fontFamily,
  19. List<String>? fontFamilyFallback,
  20. String? package,
  21. double? fontSize,
  22. FontWeight? fontWeight,
  23. FontStyle? fontStyle,
  24. double? letterSpacing,
  25. double? wordSpacing,
  26. TextBaseline? textBaseline,
  27. double? height,
  28. Paint? foreground,
  29. Paint? background,
  30. TextDecoration decoration = TextDecoration.none,
  31. Color? decorationColor,
  32. TextDecorationStyle? decorationStyle,
  33. double? decorationThickness,
  34. String? debugLabel,
  35. List<Shadow>? shadows,
  36. List<FontFeature>? fontFeatures,
  37. TextHeightBehavior? textHeightBehavior,
  38. Color? selectionColor,
})

Implementation

const BText(
  this.text, {
  super.key,
  this.recognizer,
  this.semanticsLabel,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.overflow,
  this.textScaleFactor,
  this.maxLines,
  this.textWidthBasis,
  this.style,
  this.inherit = true,
  this.color,
  this.backgroundColor,
  this.fontFamily,
  this.fontFamilyFallback,
  this.package,
  this.fontSize,
  this.fontWeight,
  this.fontStyle,
  this.letterSpacing,
  this.wordSpacing,
  this.textBaseline,
  this.height,
  this.foreground,
  this.background,
  this.decoration = TextDecoration.none,
  this.decorationColor,
  this.decorationStyle,
  this.decorationThickness,
  this.debugLabel,
  this.shadows,
  this.fontFeatures,
  this.textHeightBehavior,
  this.selectionColor,
})  : assert(color == null || foreground == null, _kColorForegroundWarning),
      assert(backgroundColor == null || background == null,
          _kColorBackgroundWarning),
      isRich = false,
      texts = const [],
      styles = const [],
      recognizers = const [],
      semanticsLabels = const [];