TextStyleConfiguration constructor

const TextStyleConfiguration({
  1. TextStyle text = const TextStyle(fontSize: 16.0),
  2. TextStyle bold = const TextStyle(fontWeight: FontWeight.bold),
  3. TextStyle italic = const TextStyle(fontStyle: FontStyle.italic),
  4. TextStyle underline = const TextStyle(decoration: TextDecoration.underline),
  5. TextStyle strikethrough = const TextStyle(decoration: TextDecoration.lineThrough),
  6. TextStyle href = const TextStyle(color: Colors.lightBlue, decoration: TextDecoration.underline),
  7. TextStyle code = const TextStyle(color: Colors.red, backgroundColor: Color.fromARGB(98, 0, 195, 255)),
  8. TextStyle autoComplete = const TextStyle(color: Colors.grey),
  9. bool applyHeightToFirstAscent = false,
  10. bool applyHeightToLastDescent = false,
})

Implementation

const TextStyleConfiguration({
  this.text = const TextStyle(fontSize: 16.0),
  this.bold = const TextStyle(fontWeight: FontWeight.bold),
  this.italic = const TextStyle(fontStyle: FontStyle.italic),
  this.underline = const TextStyle(
    decoration: TextDecoration.underline,
  ),
  this.strikethrough = const TextStyle(
    decoration: TextDecoration.lineThrough,
  ),
  this.href = const TextStyle(
    color: Colors.lightBlue,
    decoration: TextDecoration.underline,
  ),
  this.code = const TextStyle(
    color: Colors.red,
    backgroundColor: Color.fromARGB(98, 0, 195, 255),
  ),
  this.autoComplete = const TextStyle(
    color: Colors.grey,
  ),
  this.applyHeightToFirstAscent = false,
  this.applyHeightToLastDescent = false,
});