getBounds method

Rect getBounds()

Gets the node's bounding rectangle.

Implementation

Rect getBounds() {
  return Rect.fromLTWH(
    position.value.dx,
    position.value.dy,
    size.value.width,
    size.value.height,
  );
}