ParagraphStyle constructor
const
ParagraphStyle({
- double maxWidth = double.infinity,
- TextAlign align = TextAlign.left,
- double lineHeight = 1.0,
- int? maxLines,
- bool addEllipsis = false,
- LineBreaker lineBreaker = LineBreaker.greedy,
- StrutMetrics? strut,
- bool applyHeightToFirstAscent = true,
- bool applyHeightToLastDescent = true,
- 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,
});