RRouter class Null safety




hashCode int
The hash code for this object. [...]
read-only, inherited
interceptors RRouterInterceptors
notFoundPage RRouterNotFountPage?
read / write
observer RRouterObserver
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


addRouter({required String path, required RRouterWidgetBuilder routerWidgetBuilder, RRouterPageBuilderType? routerPageBuilderType, PageTransitionsBuilder? routerPageTransitions, bool? isReplaceRouter}) → void
you want to add a widget in the navigation , can use it. path your path routerWidgetBuilder widget builder. routerPageBuilderType page builder transaction type. routerPageTransitions page transitions style. isReplaceRouter you want to replace router when your register.
canPop() bool
clear() → void
finalizeRoute(Route route) → void
Complete the lifecycle for a route that has been popped off the navigator. [...]
getRouteWidget(String path, [Map<String, dynamic>? arguments]) Widget
build your router widget use in animations packages
lock() → void
maybePop<T extends Object>([T? result]) Future<bool>
Tries to pop the current route, while honoring the route's Route.willPop state.
Push the given route onto the navigator. path you register path. arguments you want to give path arguments. replace will replace route clearTrace will clear all route and push path. isSingleTop if path is top,There was no response.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
pop<T extends Object>([T? result]) → dynamic
Pop the top-most route off the navigator.
popAndPushNamed<T extends Object, TO extends Object>(String routeName, {TO? result, Object? arguments}) Future<T?>
Pop the current route off the navigator and push a named route in its place.
popUntil(RoutePredicate predicate) → void
Calls pop repeatedly until the predicate returns true.
removeRoute(Route route) → void
Immediately remove route from the navigator, and Route.dispose it.
removeRouteBelow(Route anchorRoute) → void
Immediately remove a route from the navigator, and Route.dispose it. The route to be removed is the one below the given anchorRoute.
routerGenerate(RouteSettings settings) Route
generate a route ,you must add this to app.
setEnableDebug() → void
toString() String
A string representation of this object. [...]
unLock() → void


operator ==(Object other) bool
The equality operator. [...]

Static Properties

context BuildContext
myRouter RRouter