BSTextParams constructor
BSTextParams(
- String text, {
- double textSizeSmall = -1,
- double textSizeLarge = -1,
- TextAlign? textAlignment,
- Color? color,
- FontWeight? weight,
- FontStyle? fontStyle,
- TextDecoration? textDecoration,
- double? height,
- Paint? background,
- Color? backgroundColor,
- Color? decorationColor,
- TextDecorationStyle? decorationStyle,
- double? decorationThickness,
- String? fontFamily,
- List<
String> ? fontFamilyFallback, - List<
FontFeature> ? fontFeatures, - String? debugLabel,
- Paint? foreground,
- bool inherit = true,
- TextLeadingDistribution? leadingDistribution,
- double? letterSpacing,
- Locale? locale,
- TextOverflow? overflow,
- String? package,
- List<
Shadow> ? shadows, - TextBaseline? textBaseline,
- double? wordSpacing,
- int? maxLines,
- String? semanticsLabel,
- bool? softWrap,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- TextHeightBehavior? textHeightBehavior,
- double? textScaleFactor,
- TextWidthBasis? textWidthBasis,
- Key? textKey,
text is the only required param
Implementation
BSTextParams(
this.text, {
this.textSizeSmall = -1,
this.textSizeLarge = -1,
this.textAlignment,
this.color,
this.weight,
this.fontStyle,
this.textDecoration,
this.height,
this.background,
this.backgroundColor,
this.decorationColor,
this.decorationStyle,
this.decorationThickness,
this.fontFamily,
this.fontFamilyFallback,
this.fontFeatures,
this.debugLabel,
this.foreground,
this.inherit = true,
this.leadingDistribution,
this.letterSpacing,
this.locale,
this.overflow,
this.package,
this.shadows,
this.textBaseline,
this.wordSpacing,
this.maxLines,
this.semanticsLabel,
this.softWrap,
this.strutStyle,
this.textDirection,
this.textHeightBehavior,
this.textScaleFactor,
this.textWidthBasis,
this.textKey,
});