build method Null safety
- ParagraphBuilder builder,
- {double textScaleFactor = 1.0,
- List<
PlaceholderDimensions> ? dimensions}
Apply the properties of this object to the given ParagraphBuilder, from which a Paragraph can be obtained.
The textScaleFactor
parameter specifies a scale that the text and
placeholders will be scaled by. The scaling is performed before layout,
so the text will be laid out with the scaled glyphs and placeholders.
The dimensions
parameter specifies the sizes of the placeholders.
Each PlaceholderSpan must be paired with a PlaceholderDimensions
in the same order as defined in the InlineSpan tree.
Implementation
void build(ui.ParagraphBuilder builder, { double textScaleFactor = 1.0, List<PlaceholderDimensions>? dimensions });