router top-level property

GoRouter get router

The active router instance, set by createRouter. Used by static callbacks (e.g. notification tap handler) that cannot receive the instance directly.

Implementation

GoRouter get router => _activeRouter!;