ScreenRoute class final
One published layout: a LayoutDocument whose roots are its canvases
(one per screen size, picked by breakpoints), and what the runtime needs
to run it.
Its JSON is the document's (schema, id, roots, nodes) with the
layout's own keys beside them, so a published layout decodes as a
LayoutDocument too.
How a screen opens when a link (its URL) opens it rather than an action:
under, the location of the screen beneath it (/ the app's entry,
specimen/:id with this screen's own params), so back lands there as it
would had the user navigated; translucent, drawn over that screen (a
lightbox, a dialog) instead of covering it. (Not an overlay screen,
CanvasProps.overlay, shown above every screen.)
- Annotations
Constructors
- ScreenRoute({String? under, bool translucent = false})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isNone → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- translucent → bool
-
Drawn over the screen beneath (that one stays visible behind it).
final
- under → String?
-
The path pattern of the screen beneath (
:namefilled from this screen's params);/is the app's entry. Null: nothing beneath.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Object? json) → ScreenRoute? -
From
{under, translucent}(other keys ignored); null when neither is set.
Constants
- none → const ScreenRoute