mounted property

bool get mounted

Indicates whether the window is currently mounted in the widget tree.

A window is mounted when it has been added to the widget tree and has an associated build context. Unmounted windows cannot be controlled or accessed.

Returns true if window is mounted, false otherwise.

Implementation

bool get mounted => _key.currentContext != null;