isActive method

bool isActive(
  1. String currentRoutePath
)

Implementation

bool isActive(String currentRoutePath) {
  return currentRoutePath == routePath ||
      children.any((childMenu) => childMenu.routePath == currentRoutePath);
}