setTextStyle method
Sets the painting.TextStyle for this GText.
If the provided style
is the same as the current style, nothing is done.
Otherwise, the style
is set and the paragraph builder is invalidated.
Implementation
void setTextStyle(painting.TextStyle style) {
if (_style == style) {
return;
}
_style = style;
_invalidBuilder = true;
}