findEntrywithKey method

NavigationEntry? findEntrywithKey(
  1. Key key
)

Implementation

NavigationEntry? findEntrywithKey(Key key) {
  if (route.key == key) return this;

  for (var tab in tabs) {
    final tabEntry = tab.findEntrywithKey(key);
    if (tabEntry != null) return tabEntry;
  }

  return null;
}