ParagraphStyle class

Constructors

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})
const

Properties

addEllipsis bool
final
align TextAlign
final
applyHeightToFirstAscent bool
TextHeightBehavior: false → the first line's ascent ignores runs' height multipliers (uses natural font ascent).
final
applyHeightToLastDescent bool
TextHeightBehavior: false → the last line's descent ignores runs' height multipliers.
final
evenLeading bool
Paragraph default for TextRun.evenLeading (TextHeightBehavior. leadingDistribution == even).
final
hashCode int
The hash code for this object.
no setterinherited
lineBreaker LineBreaker
Strategy that chooses where lines end (greedy by default; e.g. KnuthPlassLineBreaker for optimal justified paragraphs). Alignment, ellipsis, maxLines, and justify space distribution are applied on top of whatever breaks the strategy returns.
final
lineHeight double
final
maxLines int?
final
maxWidth double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strut → StrutMetrics?
Minimum (or, with StrutMetrics.force, exact) line metrics.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited