build method Null safety

Paragraph build()

Applies the given paragraph style and returns a Paragraph containing the added text and associated styling.

After calling this function, the paragraph builder object is invalid and cannot be used further.

Implementation

Paragraph build() {
  final Paragraph paragraph = Paragraph._();
  _build(paragraph);
  return paragraph;
}