RRouter class Null safety

Constructors

RRouter()

Properties

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

Methods

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. [...]
inherited
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. [...]
inherited
unLock() → void

Operators

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

Static Properties

context BuildContext
read-only
myRouter RRouter
final
read-only