NomoRouterDelegate class

Inheritance
Mixed-in types

Constructors

NomoRouterDelegate({Widget? initial, required NomoAppRouter appRouter, List<NavigatorObserver> observers = const [], Map<Key, List<NavigatorObserver>> nestedObservers = const {}})

Properties

appRouter NomoAppRouter
final
current RouteInfo
no setter
currentConfiguration RouterConfiguration
Called by the Router when it detects a route information may have changed as a result of rebuild.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
initial Widget?
final
initialRouteInfo RouteInfo?
latefinal
The key used for retrieving the current navigator.
no setteroverride
nestedObservers Map<Key, List<NavigatorObserver>>
final
nestedRoutes Map<NestedNavigator, Iterable<RouteInfo>>
Nested Routes for each nested navigator
latefinal
nestedStack Map<Key, List<NestedNomoPage>>
no setter
observers List<NavigatorObserver>
final
rootStack List<RootNomoPage>
no setter
routeInfos List<RouteInfo>
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
build(BuildContext context) Widget
Called by the Router to obtain the widget tree that represents the current state.
override
containsNestedRouterPage(Key? key) bool
didChangeAccessibilityFeatures() → void
Called when the system changes the set of currently active accessibility features.
inherited
didChangeAppLifecycleState(AppLifecycleState state) → void
Called when the system puts the app in the background or returns the app to the foreground.
inherited
didChangeLocales(List<Locale>? locales) → void
Called when the system tells the app that the user's locale has changed. For example, if the user changes the system language settings.
inherited
didChangeMetrics() → void
Called when the application's dimensions change. For example, when a phone is rotated.
override
didChangePlatformBrightness() → void
Called when the platform brightness changes.
inherited
didChangeTextScaleFactor() → void
Called when the platform's text scale factor changes.
inherited
didChangeViewFocus(ViewFocusEvent event) → void
Called whenever the PlatformDispatcher receives a notification that the focus state on a view has changed.
inherited
didHaveMemoryPressure() → void
Called when the system is running low on memory.
inherited
didPopRoute() Future<bool>
Called when the system tells the app to pop the current route, such as after a system back button press or back gesture.
inherited
didPushRoute(String route) Future<bool>
Called when the host tells the application to push a new route onto the navigator.
inherited
didPushRouteInformation(RouteInformation routeInformation) Future<bool>
Called when the host tells the application to push a new RouteInformation and a restoration state onto the router.
inherited
didRequestAppExit() Future<AppExitResponse>
Called when a request is received from the system to exit the application.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
getNavKeyFromRouteInfo(RouteInfo routeInfo) Key
handleCancelBackGesture() → void
Called when a predictive back gesture is canceled, indicating that no navigation should occur.
inherited
handleCommitBackGesture() → void
Called when a predictive back gesture is finished successfully, indicating that the current route should be popped.
inherited
handleStartBackGesture(PredictiveBackEvent backEvent) bool
Called at the start of a predictive back gesture.
inherited
handleUpdateBackGestureProgress(PredictiveBackEvent backEvent) → void
Called when a predictive back gesture moves.
inherited
isNestedRoute(RouteInfo? routeInfo) NestedNavigator?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
pop<T>([T? result]) bool
popRoot<T>([T? result]) bool
popRoute() Future<bool>
Called by the Router when the Router.backButtonDispatcher reports that the operating system is requesting that the current route be popped.
inherited
popUntil(bool predicate(NomoPage)) → void
popUntilAndPush<T>(AppRoute route, bool predicate(NomoPage)) Future<T>
popWithKey<T>([T? result]) bool
push<T, A>(AppRoute route, {JsonMap? urlArguments}) Future<T>
pushModal<T>({required Widget modal, PageTransition transition = const PageSlideTransition()}) Future<T?>
pushNamed<T>(String path, {Object? arguments, JsonMap? urlArgs}) Future<T>
recalculateDynamicRoutes({bool shouldNotify = true}) → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
replace<T>(AppRoute route) Future<T>
replaceAll<T>(AppRoute route) Future<T>
replaceNamed<T>(String path, {Object? arguments, JsonMap? urlArgs}) Future<T>
setInitialRoutePath(RouterConfiguration configuration) Future<void>
Called by the Router at startup with the structure that the RouteInformationParser obtained from parsing the initial route.
inherited
setNewRoutePath(RouterConfiguration configuration) Future<void>
Called by the Router when the Router.routeInformationProvider reports that a new route has been pushed to the application by the operating system.
override
setRestoredRoutePath(RouterConfiguration configuration) Future<void>
Called by the Router during state restoration.
inherited
showModal<T>({required WidgetBuilder builder, required BuildContext context, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings, Offset? anchorPoint, TraversalEdgeBehavior? traversalEdgeBehavior}) Future<T?>
showModalWithKey<T>({required WidgetBuilder builder, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings, Offset? anchorPoint, TraversalEdgeBehavior? traversalEdgeBehavior, GlobalKey<NavigatorState>? navKey}) Future<T?>
toString() String
A string representation of this object.
inherited

Operators

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