drawParagraph abstract method
Draws the text in the given Paragraph into this canvas at the given Offset.
The Paragraph object must have had Paragraph.layout called on it first.
To align the text, set the textAlign
on the ParagraphStyle object
passed to the ParagraphBuilder.new constructor. For more details see
TextAlign and the discussion at ParagraphStyle.new.
If the text is left aligned or justified, the left margin will be at the
position specified by the offset
argument's Offset.dx coordinate.
If the text is right aligned or justified, the right margin will be at the
position described by adding the ParagraphConstraints.width given to
Paragraph.layout, to the offset
argument's Offset.dx coordinate.
If the text is centered, the centering axis will be at the position
described by adding half of the ParagraphConstraints.width given to
Paragraph.layout, to the offset
argument's Offset.dx coordinate.
Implementation
void drawParagraph(Paragraph paragraph, Offset offset);