BText constructor

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

Implementation

const BText(
  this.text, {
  super.key,
  this.useStyleFirst = true,

  /// [TextSpan]
  this.style,
  this.recognizer,
  this.semanticsLabel,
  this.mouseCursor,
  this.onEnter,
  this.onExit,
  this.spellOut,

  /// [Text]
  this.locale,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.softWrap,
  this.overflow,
  this.textScaleFactor,
  this.maxLines,
  this.textWidthBasis,
  this.textHeightBehavior,
  this.selectionColor,
  this.textScaler = TextScaler.noScaling,

  /// [TextStyle]
  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.leadingDistribution,
  this.fontVariations,
})  : texts = const [],
      styles = const [],
      recognizers = const [],
      semanticsLabels = const [],
      mouseCursors = const [],
      onEnters = const [],
      onExits = const [],
      locales = const [],
      spellOuts = const [];