searchChildrenRoute method

RixaPage? searchChildrenRoute(
  1. PageBase page,
  2. String route
)

Implementation

RixaPage? searchChildrenRoute(PageBase page, String route) {
  for (var child in page.children) {
    if (child is RixaPage &&
        paramsConverter(path: child.fullRoute, params: Get.parameters) ==
            route) {
      return child;
    } else {
      RixaPage? tmp = searchChildrenRoute(child, route);
      if (tmp != null) {
        return tmp;
      }
    }
  }
  return null;
}