ParagraphBuilder constructor

ParagraphBuilder(ParagraphStyle style)

Creates a ParagraphBuilder object, which is used to create a Paragraph.

Implementation

@pragma('vm:entry-point')
ParagraphBuilder(ParagraphStyle style) {
  List<String> strutFontFamilies;
  if (style._strutStyle != null) {
    strutFontFamilies = <String>[];
    if (style._strutStyle._fontFamily != null)
      strutFontFamilies.add(style._strutStyle._fontFamily);
    if (style._strutStyle._fontFamilyFallback != null)
      strutFontFamilies.addAll(style._strutStyle._fontFamilyFallback);
  }
  _constructor(
    style._encoded,
    style._strutStyle?._encoded,
    style._fontFamily,
    strutFontFamilies,
    style._fontSize,
    style._height,
    style._ellipsis,
    _encodeLocale(style._locale)
  );
}