Hi,
First let me say that this is a great package.
I am trying to get the current route in order to perform a specific action.
Is there a way to get the current route - something like Routes.sailor.currentRouteName or Routes.sailor.currentRoute.
I came up with 2 possible options, if there is another way please let me know:
Maybe use the 'SailorLoggingObserver` (like its suggested in issue #32 ) but I am not sure this is the correct approach?
The option I am using now is ModalRoute.of(context).isCurrent but I am guessing navigation package like Sailor should have something build in, no?
Hi, First let me say that this is a great package.
I am trying to get the current route in order to perform a specific action. Is there a way to get the current route - something like
Routes.sailor.currentRouteName
orRoutes.sailor.currentRoute
.I came up with 2 possible options, if there is another way please let me know:
ModalRoute.of(context).isCurrent
but I am guessing navigation package like Sailor should have something build in, no?Thanks