RouteManager class
Route manager
- Inheritance
-
- Object
- NavigatorObserver
- RouteManager
Properties
- currentRoute → Route?
-
Current route.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
Navigator.
getter/setter pairoverride-getter
-
routes
→ List<
Route> ? -
Route.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- streamController → StreamController?
-
no setter
Methods
-
context(
{String? routeName}) → BuildContext? - Context.
-
didPop(
Route route, Route? previousRoute) → void -
DidPop.
override
-
didPush(
Route route, Route? previousRoute) → void -
DisPush.
override
-
didRemove(
Route removedRoute, Route? oldRoute) → void -
DidRemove.
override
-
didReplace(
{Route? newRoute, Route? oldRoute}) → void -
DisReplace.
override
-
didStartUserGesture(
Route route, Route? previousRoute) → void -
The Navigator's routes are being moved by a user gesture.
inherited
-
didStopUserGesture(
) → void -
User gesture is no longer controlling the Navigator.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pop(
{dynamic result}) → dynamic - Pop.
-
popUntil(
{required String? untilRouteName}) → dynamic -
PopUntil
untilRouteName
. -
push<
T extends Object> ({required Route< T> route}) → Future<T?> ? - push
-
pushNamed(
{required String routeName, dynamic argument}) → dynamic - Push.
-
pushNamedAndRemoveUntil(
{required String newRouteName, required String? untilRouteName, dynamic argument, RoutePageAnimation routePageAnimation = AirouteTransition.Slide}) → dynamic -
Push
newRouteName
and remove untiluntilRouteName
. -
pushNamedWithAnimation(
{required String routeName, dynamic argument, RoutePageAnimation routePageAnimation = AirouteTransition.Slide, Duration duration = const Duration(milliseconds: 500)}) → dynamic - Push with animation.
-
pushReplacementNamed(
{required String routeName, dynamic argument}) → dynamic - Replace.
-
routeObserver(
) → void - RouteObserver.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getInstance(
) → RouteManager - Instance.
-
initializeGenerateRoute(
RouteSettings routeSettings) → Route - Initialize generate route.
-
initializeRoutes(
{required Map< String, AirouteBuilder> routes}) → Map<String, AirouteBuilder> -
Initialize routes
_route
.