FlutterWindow class Null safety

A top-level platform window displaying a Flutter layer tree drawn from a Scene.

The current list of all Flutter views for the application is available from WidgetsBinding.instance.platformDispatcher.views. Only views that are of type FlutterWindow are top level platform windows.

There is also a PlatformDispatcher.instance singleton object in dart:ui if WidgetsBinding is unavailable, but we strongly advise avoiding a static reference to it. See the documentation for PlatformDispatcher.instance for more details about why it should be avoided.

See also:

Inheritance
Implementers

Properties

devicePixelRatio double
The number of device pixels for each logical pixel for the screen this view is displayed on. [...]
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
padding WindowPadding
The number of physical pixels on each side of the display rectangle into which the view can render, but which may be partially obscured by system UI (such as the system notification area), or or physical intrusions in the display (e.g. overscan regions on television screens or phone sensor housings). [...]
read-only, inherited
physicalGeometry Rect
The dimensions and location of the rectangle into which the scene rendered in this view will be drawn on the screen, in physical pixels. [...]
read-only, inherited
physicalSize Size
The dimensions of the rectangle into which the scene rendered in this view will be drawn on the screen, in physical pixels. [...]
read-only, inherited
platformDispatcher PlatformDispatcher
The platform dispatcher that this view is registered with, and gets its information from.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
systemGestureInsets WindowPadding
The number of physical pixels on each side of the display rectangle into which the view can render, but where the operating system will consume input gestures for the sake of system navigation. [...]
read-only, inherited
viewConfiguration ViewConfiguration
The configuration of this view.
read-only, override
viewInsets WindowPadding
The number of physical pixels on each side of the display rectangle into which the view can render, but over which the operating system will likely place system UI, such as the keyboard, that fully obscures any content. [...]
read-only, inherited
viewPadding WindowPadding
The number of physical pixels on each side of the display rectangle into which the view can render, but which may be partially obscured by system UI (such as the system notification area), or or physical intrusions in the display (e.g. overscan regions on television screens or phone sensor housings). [...]
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
render(Scene scene) → void
Updates the view's rendering on the GPU with the newly provided Scene. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited