TopPageRoute class
Whether the page on top of the most recently changed navigator carries a route name.
EmbedRouteManager.currentRoute only moves when a NAMED page is pushed or
popped to: after an unnamed MaterialPageRoute push it still names the
page underneath. Screen naming prefers the route name (it is stable across
builds and obfuscation), so it must know when that name is stale and fall
back to widget-tree inference instead. Fed by EmbedNavigatorObserver; a
host-provided screen name (EmbedRouteListener / setCurrentScreen)
clears it via markNamed.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isUnnamed → bool
-
True when the newest page navigation landed on an UNNAMED page, i.e. the
route manager's current route describes a different page.
no setter
- unnamedDepth → int
-
How many unnamed pages sit above the topmost NAMED page (0 when the top
page is named). Lets an unnamed page get its own stable screen name
instead of inheriting the page underneath.
no setter
Static Methods
-
debugReset(
) → void -
markNamed(
) → void - The current route name is authoritative again (host set a screen name).
-
note(
{required bool named, int unnamedDepth = 0}) → void -
Record the page now on top:
namedwhen it has a route name;unnamedDepthcounts the unnamed pages stacked above the last named one.