offset property
int
offset
Returns the offset of this run within the text.
Implementation
int get offset {
var text = textComponent;
if (text == null) {
return 0;
}
int value = 0;
for (final run in text.runs) {
if (run == this) {
break;
}
value += run.text.length;
}
return value;
}