findEntryWithKey method

NavigationEntry? findEntryWithKey(
  1. Key key
)

Finds NavigationEntry with Key

Implementation

NavigationEntry? findEntryWithKey(final Key key) {
  if (route.key == key) {
    return this;
  }

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

  return null;
}