handle property
WindowHandle
get
handle
Gets a handle to the window's internal state.
Provides access to the window's state for programmatic control. The window must be mounted (added to the widget tree) before accessing this handle.
Throws AssertionError if the window is not mounted.
Returns WindowHandle for controlling the window state.
Implementation
WindowHandle get handle {
var currentState = _key.currentState;
assert(currentState != null, 'Window is not mounted');
return currentState!;
}