ParagraphBuilder constructor
- ParagraphStyle style
Creates a new ParagraphBuilder object, which is used to create a Paragraph.
Implementation
@pragma('vm:entry-point')
ParagraphBuilder(ParagraphStyle style) {
List<String>? strutFontFamilies;
final StrutStyle? strutStyle = style._strutStyle;
if (strutStyle != null) {
strutFontFamilies = <String>[];
final String? fontFamily = strutStyle._fontFamily;
if (fontFamily != null)
strutFontFamilies.add(fontFamily);
if (strutStyle._fontFamilyFallback != null)
strutFontFamilies.addAll(strutStyle._fontFamilyFallback!);
}
_constructor(
style._encoded,
strutStyle?._encoded,
style._fontFamily,
strutFontFamilies,
style._fontSize,
style._height,
style._ellipsis,
_encodeLocale(style._locale)
);
}