ParagraphStyle constructor

const ParagraphStyle({
  1. double maxWidth = double.infinity,
  2. TextAlign align = TextAlign.left,
  3. double lineHeight = 1.0,
  4. int? maxLines,
  5. bool addEllipsis = false,
  6. LineBreaker lineBreaker = LineBreaker.greedy,
  7. StrutMetrics? strut,
  8. bool applyHeightToFirstAscent = true,
  9. bool applyHeightToLastDescent = true,
  10. bool evenLeading = false,
})

Implementation

const ParagraphStyle({
  this.maxWidth = double.infinity,
  this.align = TextAlign.left,
  this.lineHeight = 1.0,
  this.maxLines,
  this.addEllipsis = false,
  this.lineBreaker = LineBreaker.greedy,
  this.strut,
  this.applyHeightToFirstAscent = true,
  this.applyHeightToLastDescent = true,
  this.evenLeading = false,
});