build abstract method
- ParagraphBuilder builder, {
- TextScaler textScaler = TextScaler.noScaling,
- List<
PlaceholderDimensions> ? dimensions,
Apply the properties of this object to the given ParagraphBuilder, from which a Paragraph can be obtained.
The textScaler
parameter specifies a TextScaler 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, {
TextScaler textScaler = TextScaler.noScaling,
List<PlaceholderDimensions>? dimensions,
});