setParagraphStyle method
Sets the ParagraphStyle for the text.
If the new style is the same as the current style, this method does nothing. Otherwise, the new style is assigned and the GText repainted.
Implementation
void setParagraphStyle(ui.ParagraphStyle style) {
if (_paragraphStyle == style) {
return;
}
_paragraphStyle = style;
_invalidBuilder = true;
}