useLocation function
Returns the current document location.
This returns null during SSR and the first hydration build, then
synchronizes after the first client frame. It rebuilds on popstate,
hashchange, pageshow, and same-document navigation performed through
a HistoryController.
Implementation
Uri? useLocation() => use(const _LocationHook(null));