RoutePresentation enum
How a route is presented, which is what a screen derives its bar from: the title on a root, the back affordance on a pushed page, the dismiss affordance on a sheet. A page never authors its own back or close; it reads its presentation (of).
Values
- root → const RoutePresentation
-
A route nothing sits beneath in its navigator: a shell branch's root, or an app's first page.
- pushed → const RoutePresentation
-
A route pushed over another.
- sheet → const RoutePresentation
-
A route raised as a sheet or a full-screen cover.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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 Methods
-
of(
BuildContext context) → RoutePresentation -
The presentation in force at
context: the one a RoutePresentationScope publishes (a sheet page publishes sheet), else the route's own position — pushed when the route implies a dismissal (a route stands below it in its navigator), root otherwise, and root outside any route.
Constants
-
values
→ const List<
RoutePresentation> - A constant List of the values in this enum, in order of their declaration.