NavigationService class
NavigationService class provides different functions as service in the context of navigation.
Services include:
pushScreen
popAndPushScreen
pushReplacementScreen
removeAllAndPush
showSnackBar
pushDialog
showTalawaErrorWidget
showTalawaErrorDialog
pop
Constructors
:
Properties
[hashCode] [→ int] : The hash code for this object. ::: features no setterinherited :::
[navigatorKey] [↔ GlobalKey[<[NavigatorState]>]] : Key for Navigator State. ::: features getter/setter pair :::
[runtimeType] [→ Type] : A representation of the runtime type of the object. ::: features no setterinherited :::
Methods
[noSuchMethod][([[Invocation] invocation]) → dynamic ] : Invoked when a nonexistent method or property is accessed. ::: features inherited :::
pop [→ void ] : This function pops the current state.
[popAndPushScreen][([[String] routeName, ) [→ Future] ] : This function pop the initial route and push the new route to the navigator.
printNavigatorState [→ void ] : This function prints current navigation state.
[pushDialog][([[Widget] dialog]) → void ] : This function remove all the routes till the particular route and add new route.
[pushReplacementScreen][([[String] routeName, ) [→ Future] ] : This function push the route and replace the screen.
[pushScreen][([[String] routeName, ) [→ Future] ] : Pushes a Screen.
[removeAllAndPush][([[String] routeName, ][[String] tillRoute, ) [→ Future] ] : This function remove all the routes till the particular route and add new route.
[showCustomToast][([[String] msg]) → void ] : Shows an Custom Toast.
[showSnackBar][([[String] message, ) → void ]
: This is used for the quick alert of duration: 2 seconds
with text
message(passed).
[showTalawaErrorDialog][([[String] errorMessage, ][[MessageType] messageType]) → void ] : Shows an Error Dialog Box.
[showTalawaErrorSnackBar][([[String] errorMessage, ][[MessageType] messageType]) → void ]
: This is used for the quick error of duration: 2 seconds
.
[toString][ [→ String] ] : A string representation of this object. ::: features inherited :::
Operators
[operator ==][([[Object] other]) [→ bool] ] : The equality operator. ::: features inherited :::
- talawa
- navigation_service
- NavigationService class