StackNavigator class

This Navigator is internally used by the RootNavigator. It should never be used outside a RootNavigator.

Inheritance

Constructors

StackNavigator({required BeagleRoute initialRoute, required ScreenBuilder screenBuilder, required NavigationController controller, required BeagleService beagle, required BeagleNavigator rootNavigator, List<Route> initialPages = const [], List<NavigatorObserver> navigatorObservers = const []})

Properties

beagle BeagleService
final
controller NavigationController
final
hashCode int
The hash code for this object.
no setterinherited
initialPages List<Route>
final
initialRoute BeagleRoute
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
final
rootNavigator BeagleNavigator
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenBuilder ScreenBuilder
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
getHistory() List<StackNavigatorHistory>
Returns a copy of the navigation history. Used for testing purposes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
popToView(String routeIdentifier, [NavigationContext? navigationContext]) → void
popView([NavigationContext? navigationContext]) → void
pushView(BeagleRoute route, BuildContext context) Future<void>
reloadCurrentPage() → void
Remakes the request to the current page and updates its content. It only works if the current page is a RemoteView, it does nothing for LocalViews.
setNavigationContext(NavigationContext? navigationContext, [LocalContextsManager? manager, bool render = true]) → void
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited
untilFirstLoadCompletes() Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited