TextStyle constructor
const
TextStyle({
- Color color = Color.white,
- Color? backgroundColor,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- List<
TextDecoration> ? decoration, - TextEffect? effect,
- int? attributes,
Creates a text style.
All parameters are optional and will use sensible defaults.
Implementation
const TextStyle({
this.color = Color.white,
this.backgroundColor,
this.fontWeight,
this.fontStyle,
this.decoration,
this.effect,
int? attributes,
}) : attributes = attributes ?? 0;