widgetBounds property

Rect widgetBounds

Returns a Rect representing this widget's bounds.

Implementation

Rect get widgetBounds {
  return (owner != null && widgetRenderBox != null) ? widgetRenderBox!.semanticBounds : Rect.zero;
}