isLeafRoute function

bool isLeafRoute(
  1. BuildContext context
)

Implementation

bool isLeafRoute(BuildContext context) {
  final currentRoute = GoRouterState.of(context).uri.path;
  final leafRoute = currentRoute.contains("post") ||
      currentRoute.contains('profiel') ||
      currentRoute.contains('evenement') ||
      currentRoute.contains('inbox') ||
      currentRoute.contains('gebruiksvoorwaarden');
  return leafRoute;
}