fragmentsOf method

List<Rect> fragmentsOf(
  1. InlineBox box
)

box's fragments, one per line it is on, as last laid out: each its border box in the flow's coordinates, where it is painted (moved by InlineBox.offset).

Implementation

List<Rect> fragmentsOf(InlineBox box) => [
  for (final f in _laid?.fragments ?? const <_Fragment>[])
    if (identical(f.box.node, box)) f.rect.shift(f.box.shift),
];