isCurrentRoute method
Checks if the current route matches the given path.
Implementation
@override
bool isCurrentRoute(BuildContext context, String path) {
final route = ModalRoute.of(context);
return route?.settings.name == path;
}
Checks if the current route matches the given path.
@override
bool isCurrentRoute(BuildContext context, String path) {
final route = ModalRoute.of(context);
return route?.settings.name == path;
}