boxRects property
The rectangle of every inline box that has a InlineBox.key: the union
of its fragments, which is what a browser reports for an inline element
(getBoundingClientRect), in the flow's coordinates.
Implementation
Map<Key, Rect> get boxRects {
final out = <Key, Rect>{};
for (final f in _laid?.fragments ?? const <_Fragment>[]) {
final k = f.box.node?.key;
if (k == null) continue;
final had = out[k];
final r = f.rect.shift(f.box.shift);
out[k] = had == null ? r : had.expandToInclude(r);
}
return out;
}