TextStyle constructor
const
TextStyle({
- bool truncate = false,
- bool selectable = false,
- bool softWrap = false,
- Display? display,
- Color? color,
- Dim? fontSize,
- Color? backgroundColor,
- Gradient? gradient,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- FontFamily? fontFamily,
- Dim? letterSpacing,
- Dim? wordSpacing,
- Dim? lineHeight,
- TextDecorationLine? decorationLine,
- Color? decorationLineColor,
- TextDecorationStyle? decorationStyle,
- Dim? decorationThickness,
- Dim? width,
- TextAlign? textAlign,
- int? maxLines,
- EdgeInsets? padding,
- EdgeInsets? margin,
- Map<
String, String> ? extra, - Color? selectionBackgroundColor,
- Color? selectionTextColor,
- 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,
});