DVWindow class
A window, real or virtual.
The same handle either way: close() closes a window or pops a route, and
DVWindowManager.all lists both, so a tab strip or a close-all command is
written once and works on a phone.
Constructors
- DVWindow({required DVRouteTarget route, required DVWindowKind kind, required DVWindowPresentation presentation, DVWindowDegradation degradation = DVWindowDegradation.none, String? nativeId, DVWindow? owner, DVWindowModality modality = DVWindowModality.none, bool external = false})
Properties
-
codes
→ List<
String> -
The DV-WINDOW codes this window has reported, in order: what was
degraded, refused or placed elsewhere, readable after the fact.
final
- degradation → DVWindowDegradation
-
final
- external → bool
-
Whether the OS handed this route over rather than the application asking.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isVirtual → bool
-
True when the route was navigated rather than windowed.
no setter
- kind → DVWindowKind
-
final
- kiosk ↔ DVWindowKioskHandle?
-
The kiosk this window is, or null for an ordinary window.
getter/setter pair
-
lifecycle
→ ValueListenable<
DVWindowLifecycle> -
Observed, never assigned: the runtime owns transitions.
no setter
- modality → DVWindowModality
-
What this window blocks while it is open.
final
- nativeId → String?
-
The native handle, when one exists.
final
- owner → DVWindow?
-
The window this one belongs to, for an owned kind that got a live owner.
final
- presentation → DVWindowPresentation
-
final
- route → DVRouteTarget
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spatial ↔ DVSpatialSession?
-
The session presenting this window in space, for a volume or immersive
space that got one. Ends when the window closes.
getter/setter pair
Methods
-
close(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setLifecycle(
DVWindowLifecycle value) → void -
setSize(
Size size) → Future< void> - A no-op on a virtual window, logged rather than vanishing.
-
setTitle(
String title) → Future< void> - Maps to the page title on a virtual window, which is the closest true equivalent rather than a discard.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited