replaceState method

  1. @override
void replaceState(
  1. Object? state,
  2. String title,
  3. String url,
  4. String queryParams,
)
override

Implementation

@override
void replaceState(
    Object? state, String title, String url, String queryParams) {
  internalTitle = title;
  var fullUrl = url + (queryParams.isNotEmpty ? '?$queryParams' : '');
  internalPath = fullUrl;
  var externalUrl = prepareExternalUrl(fullUrl);
  urlChanges.add('replace: $externalUrl');
}