Builds a Paragraph containing text with the given styling information.

Constructors

ParagraphBuilder(ParagraphStyle style)

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

Properties

hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

addText(String text) → void

Adds the given text to the paragraph.

build() Paragraph

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

pop() → void

Ends the effect of the most recent call to pushStyle.

pushStyle(TextStyle style) → void

Applies the given style to the added text until pop is called.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited