physicalGeometry property Null safety

Rect physicalGeometry

The dimensions and location of the rectangle into which the scene rendered in this view will be drawn on the screen, in physical pixels.

When this changes, onMetricsChanged is called.

At startup, the size and location of the view may not be known before Dart code runs. If this value is observed early in the application lifecycle, it may report Rect.zero.

This value does not take into account any on-screen keyboards or other system UI. The padding and viewInsets properties provide a view into how much of each side of the view may be obscured by system UI.

See also:

Implementation

Rect get physicalGeometry => viewConfiguration.geometry;