BSTextParams constructor

BSTextParams(
  1. String text, {
  2. double textSizeSmall = -1,
  3. double textSizeLarge = -1,
  4. TextAlign? textAlignment,
  5. Color? color,
  6. FontWeight? weight,
  7. FontStyle? fontStyle,
  8. TextDecoration? textDecoration,
  9. double? height,
  10. Paint? background,
  11. Color? backgroundColor,
  12. Color? decorationColor,
  13. TextDecorationStyle? decorationStyle,
  14. double? decorationThickness,
  15. String? fontFamily,
  16. List<String>? fontFamilyFallback,
  17. List<FontFeature>? fontFeatures,
  18. String? debugLabel,
  19. Paint? foreground,
  20. bool inherit = true,
  21. TextLeadingDistribution? leadingDistribution,
  22. double? letterSpacing,
  23. Locale? locale,
  24. TextOverflow? overflow,
  25. String? package,
  26. List<Shadow>? shadows,
  27. TextBaseline? textBaseline,
  28. double? wordSpacing,
  29. int? maxLines,
  30. String? semanticsLabel,
  31. bool? softWrap,
  32. StrutStyle? strutStyle,
  33. TextDirection? textDirection,
  34. TextHeightBehavior? textHeightBehavior,
  35. double? textScaleFactor,
  36. TextWidthBasis? textWidthBasis,
  37. 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,
});