widgetBoundsFor method

Rect? widgetBoundsFor(
  1. Key key
)

Returns the last known bounds for the VisibilityDetector with the given key in global coordinates.

Returns null if the specified VisibilityDetector is not visible or is not found.

Implementation

Rect? widgetBoundsFor(Key key) => VisibilityDetectorLayer.widgetBounds[key];