ControlNavigator class

Implemented types

Constructors

ControlNavigator(BuildContext context)

Properties

context BuildContext
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

backTo<T>({Route? route, String? identifier, bool predicate(Route)?, Route? open}) → void
Goes back in navigation stack until Route found.
override
backToRoot({Route? open}) → void
Goes back in navigation stack until first Route.
override
close([dynamic result]) bool
Pops Route from navigation stack. result is send back to parent.
override
closeRoute(Route route, [dynamic result]) bool
Removes given route from navigator.
override
getContext({bool root = false}) BuildContext
getNavigator({bool root = false}) NavigatorState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openDialog(WidgetBuilder builder, {bool root = true, dynamic type}) Future
Opens specific dialog based on given type Be default opens simple pop-up dialog.
override
openRoot(Route route) Future
Clears current Navigator and opens new Route.
override
openRoute(Route route, {bool root = false, bool replacement = false}) Future
Pushes route into current Navigator. route - specific route: type, settings, transition etc. root - pushes route into root Navigator - onto top of everything. replacement - pushes route as replacement of current route.
override
toString() String
A string representation of this object.
inherited

Operators

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