createHref method

  1. @override
String createHref(
  1. Uri uri
)
override

Formats a Uri as an href for this history implementation.

This is primarily useful on the web (e.g. when calling window.history.pushState), but can also be used to generate link targets.

Implementation

@override
String createHref(Uri uri) => uri.toString();