getCurrentRouteName method
Get current route name
Implementation
String? getCurrentRouteName() {
return ModalRoute.of(navigatorKey.currentContext!)?.settings.name;
}
Get current route name
String? getCurrentRouteName() {
return ModalRoute.of(navigatorKey.currentContext!)?.settings.name;
}