TextStyle constructor

const TextStyle({
  1. Color color = Color.white,
  2. Color? backgroundColor,
  3. FontWeight? fontWeight,
  4. FontStyle? fontStyle,
  5. List<TextDecoration>? decoration,
  6. TextEffect? effect,
  7. 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;