getInitialUri function

Future<Uri?> getInitialUri()

A convenience method that returns the initially stored link as a new Uri object.

If the link is not valid as a URI or URI reference, a FormatException is thrown.

Implementation

Future<Uri?> getInitialUri() async {
  final link = await getInitialLink();
  if (link == null) return null;
  return Uri.parse(link);
}