logicalBounds static method

Rect logicalBounds(
  1. SemanticsNode node
)

node's bounds in root logical pixels — the space RawNode.bounds and pointer positions use. Reads the tree as last built; never flushes.

Implementation

static Rect logicalBounds(SemanticsNode node) => _rectInRoot(
      node,
      WidgetsBinding.instance.platformDispatcher.implicitView
              ?.devicePixelRatio ??
          1.0,
    );