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})

Properties

degradation DVWindowDegradation
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
lifecycle ValueListenable<DVWindowLifecycle>
Observed, never assigned: the runtime owns transitions.
no setter
nativeId String?
The native handle, when one exists.
final
presentation DVWindowPresentation
final
route DVRouteTarget
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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