open's location: the router's link resolver. Null when uri isn't Dynamic Links', / when it is a link that doesn't resolve.
uri
/
Future<String?> locationOf(Uri uri) async => (await open(uri)).location;