findCached method

Voyager? findCached(
  1. String routerPath
)

lookup path in cache

Implementation

Voyager? findCached(String routerPath) {
  var voyager = _cache[routerPath];
  if (voyager == null) {
    voyager = find(routerPath);
    if (voyager != null) {
      _cache[routerPath] = voyager;
    }
  }
  return voyager;
}