TextStyle constructor

const TextStyle({
  1. bool truncate = false,
  2. bool selectable = false,
  3. bool softWrap = false,
  4. Display? display,
  5. Color? color,
  6. Dim? fontSize,
  7. Color? backgroundColor,
  8. Gradient? gradient,
  9. FontWeight? fontWeight,
  10. FontStyle? fontStyle,
  11. FontFamily? fontFamily,
  12. Dim? letterSpacing,
  13. Dim? wordSpacing,
  14. Dim? lineHeight,
  15. TextDecorationLine? decorationLine,
  16. Color? decorationLineColor,
  17. TextDecorationStyle? decorationStyle,
  18. Dim? decorationThickness,
  19. Dim? width,
  20. TextAlign? textAlign,
  21. int? maxLines,
  22. EdgeInsets? padding,
  23. EdgeInsets? margin,
  24. Map<String, String>? extra,
  25. Color? selectionBackgroundColor,
  26. Color? selectionTextColor,
  27. TextOverflow? overflow,
})

Creates a new TextStyle with the given styling attributes.

Implementation

const TextStyle({
  this.truncate = false,
  this.selectable = false,
  this.softWrap = false,
  this.display,
  this.color,
  this.fontSize,
  this.backgroundColor,
  this.gradient,
  this.fontWeight,
  this.fontStyle,
  this.fontFamily,
  this.letterSpacing,
  this.wordSpacing,
  this.lineHeight,
  this.decorationLine,
  this.decorationLineColor,
  this.decorationStyle,
  this.decorationThickness,
  this.width,
  this.textAlign,
  this.maxLines,
  this.padding,
  this.margin,
  this.extra,
  this.selectionBackgroundColor,
  this.selectionTextColor,
  this.overflow,
});