spanOf method

(double, double)? spanOf(
  1. RenderBox box
)

box's vertical span in the group, or null when it is not inside the group.

Implementation

(double, double)? spanOf(RenderBox box) {
  final anchor = _anchor;
  if (anchor == null || !anchor.attached || !box.attached || !box.hasSize) {
    return null;
  }
  final rect = MatrixUtils.transformRect(
    box.getTransformTo(anchor),
    Offset.zero & box.size,
  );
  return (rect.top, rect.bottom);
}