DynamicRoutesNavigatorImpl class

Inheritance

Properties

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

Methods

getCurrentPageIndex(Widget currentPage) int
Returns the index of the current page. The index corresponds to its position in the pages array passed to the initializeRoutes method of the initiator.
override
getCurrentWidgetHash() int?
Returns the page widget that belongs to the current route
override
getLoadedPages() List<Widget>
override
getProgressFromCurrentPage(Widget currentPage) int
Returns how many pages are left until the last page. 0 means it's the last page.
override
initializeRoutes(List<Widget> pages, {dynamic lastPageCallback(BuildContext context)?}) → void
Call this function to load a list of pages to be pushed on to the array.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
popCurrent<T>(BuildContext context, {required Widget currentPage, T? popResult}) → void
Pop the current page and all of its sub-routes.
override
popFor<T>(BuildContext context, int numberOfPagesToPop, {required Widget currentPage, T? popResult}) → void
You can reset the flow, eg. go back to the first Participator page, or the Initiator page with popFor.
override
popUntilInitiatorPage<T>(BuildContext context, {T? popResult}) → void
Pops the pages until the current navigator. Use this in the lastPageCallback to pop until the initiator page.
override
pushFirst<T>(BuildContext context) Future<T?>
Push the first page in the array
override
pushFirstThenFor<T>(BuildContext context, int numberOfPagesToPush) List<Future<T?>>
This is similar to pushFor, but is called from the initiator. Internally, we just call pushFirst first, then call pushFor. All methods of awaiting the results mentioned above apply here as well.
override
pushFor<T>(BuildContext context, int numberOfPagesToPush, {required Widget currentPage}) List<Future<T?>>
You can push multiple pages at once with pushFor.
override
pushNext<T>(BuildContext context, {required Widget currentPage}) Future<T?>
Push the next page in the array
override
setNavigationLogicProvider(NavigationLogicProvider navigationLogicProvider) → void
Override the current navigation logic.
override
toString() String
A string representation of this object.
inherited

Operators

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