DivTextStyle class

Define o estilo de texto CSS-inspired para DivText. Similar ao DivStyle, mas voltado para propriedades tipográficas.

Constructors

DivTextStyle({Color? color, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, String? fontFamily, List<String>? fontFamilyFallback, double? letterSpacing, double? wordSpacing, double? height, TextAlign? textAlign, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, TextOverflow? overflow, int? maxLines, bool? softWrap, List<Shadow>? shadows, TextBaseline? textBaseline, TextLeadingDistribution? leadingDistribution})
const

Properties

color → Color?
final
decoration → TextDecoration?
final
decorationColor → Color?
final
decorationStyle → TextDecorationStyle?
final
decorationThickness → double?
final
fontFamily → String?
final
fontFamilyFallback → List<String>?
final
fontSize → double?
final
fontStyle → FontStyle?
final
fontWeight → FontWeight?
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
Altura de linha (equivalente ao line-height do CSS).
final
leadingDistribution → TextLeadingDistribution?
final
letterSpacing → double?
final
maxLines → int?
final
overflow → TextOverflow?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shadows → List<Shadow>?
final
softWrap → bool?
final
textAlign → TextAlign?
final
textBaseline → TextBaseline?
final
wordSpacing → double?
final

Methods

merge(DivTextStyle? other) → DivTextStyle
Mescla estilos de texto. Propriedades não nulas em other substituem as propriedades atuais.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
toTextStyle() → TextStyle
Converte para o TextStyle nativo do Flutter.

Operators

operator ==(Object other) → bool
The equality operator.
inherited