isExist method

bool isExist(
  1. Widget child
)

Implementation

bool isExist(Widget child) {
  final Key? key = child.key;
  final String path = getPath(child);
  return pages.indexWhere((RoutePage<dynamic> element) =>
          element.pageConfiguration.path == path &&
          null != key &&
          element.pageConfiguration.key == key) >=
      0;
}