GlassNavBarRegistration class
What a single route contributes to the pinned navigation chrome.
Created by GlassAppBar.pinned bars and handed to the enclosing GlassNavigationShell. Consumers never construct this directly.
- Annotations
Constructors
-
Creates a registration describing one route's pinned bar chrome.
const
Properties
-
actionItems
→ List<
GlassBarActionItem> -
The tappable items in actions, with spacers removed.
no setter
-
actions
→ List<
GlassBarItem> -
The trailing cluster items for this route.
final
-
Glass settings applied to this route's pinned chrome.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalInset → double?
-
Inset from each screen edge to the pinned chrome, in logical pixels.
final
-
leading
→ List<
GlassBarItem> -
The leading cluster items for this route, excluding the back button.
final
-
leadingItems
→ List<
GlassBarActionItem> -
The tappable items in leading, with spacers removed.
no setter
- onBack → VoidCallback?
-
Overrides the default back action (
Navigator.maybePop).final - platformViewBackdrop → bool
-
Whether the pinned chrome floats over a native platform view.
final
- presentSheet → void Function(GlassBarSheetItem item)?
-
Presents GlassBarItem.sheet's sheet out of the route's own capsule.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showsBackButton → bool
-
Whether this route shows the pinned back button.
final
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