currentLocation function
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;