Skip to main content

NavigationService class

<p>NavigationService class provides different functions as service in the context of navigation.</p> <p>Services include:</p> <ul> <li><code>pushScreen</code></li> <li><code>popAndPushScreen</code></li> <li><code>pushReplacementScreen</code></li> <li><code>removeAllAndPush</code></li> <li><code>showSnackBar</code></li> <li><code>pushDialog</code></li> <li><code>showTalawaErrorWidget</code></li> <li><code>showTalawaErrorDialog</code></li> <li><code>pop</code></li> </ul>

Constructors

NavigationService ()

Properties

hashCodeint

The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>

<span class="feature">read / write</span>

runtimeTypeType

A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>

Methods

fromInviteLink(List<String> routeNames, List arguments) void
noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.
<span class="feature">inherited</span>

pop() void

This function pops the current state.

popAndPushScreen(String routeName, {dynamic arguments}) Future

This function pop the initial route and push the new route to the navigator.

pushDialog(Widget dialog) void

This function is used to show the custom Dialog.

pushReplacementScreen(String routeName, {dynamic arguments}) Future

This function push the route and replace the screen.

pushScreen(String routeName, {dynamic arguments}) Future

This function push the route to the navigator.

removeAllAndPush(String routeName, String tillRoute, {dynamic arguments}) Future

This function remove all the routes till the particular route and add new route.

showSnackBar(String message, {Duration duration = const Duration(seconds: 2)}) void

This is used for the quick alert of <code>duration: 2 seconds</code> with text message(passed).

showTalawaErrorDialog(String errorMessage, MessageType messageType) void
showTalawaErrorSnackBar(String errorMessage, MessageType messageType, {Duration duration = const Duration(seconds: 2)}) void
toString() String

A string representation of this object.
<span class="feature">inherited</span>

Operators

operator ==(Object other) bool

The equality operator.
<span class="feature">inherited</span>