NavigationService class

Navigation Service File which contains many functionalities of navigation throughout the application.

As it is a Singleton Class always use navigationService instance.

Properties

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

Methods

back() → dynamic
Use this function to navigate back.
clearStack() → dynamic
Use this function to navigate back to HomePage of the application.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replace({required String name}) → dynamic
Use this function to replace a page from one page using named routes.
to({required String name}) → dynamic
Use this function to navigate to anther named Page.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

get() NavigationService