BText constructor
const
BText(
- String text, {
- Key? key,
- GestureRecognizer? recognizer,
- String? semanticsLabel,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- TextWidthBasis? textWidthBasis,
- TextStyle? style,
- bool inherit = true,
- Color? color,
- Color? backgroundColor,
- String? fontFamily,
- List<
String> ? fontFamilyFallback, - String? package,
- double? fontSize,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- double? letterSpacing,
- double? wordSpacing,
- TextBaseline? textBaseline,
- double? height,
- Paint? foreground,
- Paint? background,
- TextDecoration decoration = TextDecoration.none,
- Color? decorationColor,
- TextDecorationStyle? decorationStyle,
- double? decorationThickness,
- String? debugLabel,
- List<
Shadow> ? shadows, - List<
FontFeature> ? fontFeatures, - TextHeightBehavior? textHeightBehavior,
- 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 [];