updateTextWidth method
void
updateTextWidth()
Updates the width of the label.
Only if the label has changed.
Implementation
void updateTextWidth() {
if (_textWidth == 0) {
_textWidth = offsetWidth;
}
}
Updates the width of the label.
Only if the label has changed.
void updateTextWidth() {
if (_textWidth == 0) {
_textWidth = offsetWidth;
}
}