observeRouter method

void observeRouter(
  1. Listenable router,
  2. String currentPath()
)

Track navigation from a Listenable router (e.g. GoRouter's routerDelegate) — catches shell/nested routes a root observer misses. See NexusReplay.observeRouter.

Implementation

void observeRouter(Listenable router, String Function() currentPath) =>
    replay.observeRouter(router, currentPath);