getCurrentRoute method
Implementation
String getCurrentRoute(BuildContext context) {
String current = "/";
final routeName =
ModalRoute
.of(context)
?.settings
.name;
return routeName ?? current;
}
String getCurrentRoute(BuildContext context) {
String current = "/";
final routeName =
ModalRoute
.of(context)
?.settings
.name;
return routeName ?? current;
}