MinimalRouteChrome enum
Which chrome a route position earns, read off the route itself: a nav root, a page pushed off one, or a page raised as a sheet. MinimalAppBar and MinimalScaffold derive their register from it, which is why a page never authors its own back or close control.
Values
- root → const MinimalRouteChrome
-
A route nothing sits beneath: the title leads, large, with its meta.
- pushed → const MinimalRouteChrome
-
A route pushed over another: the bordered back button and the breadcrumb.
- sheet → const MinimalRouteChrome
-
A route raised as a sheet: the card's compact header with its close.
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) → MinimalRouteChrome -
The register the route around
contextearns, asked of the route itself the way Material's AppBar asks it: a sheet is a bottom-sheet route, ui_core's or Material's (or Minimal's centred form in a wide window), and a page is pushed when a route stands below it — not merely when its navigator can pop, which a sheet raised over a root would make true of the root too.
Constants
-
values
→ const List<
MinimalRouteChrome> - A constant List of the values in this enum, in order of their declaration.