currentLocation function

Uri currentLocation(
  1. GoRouter router
)

The current location of router, for a real GoRouter or a MockGoRouter.

Implementation

Uri currentLocation(GoRouter router) => router is MockGoRouter
    ? Uri.parse(router.location)
    : router.routerDelegate.currentConfiguration.uri;