replaceState method

  1. @override
void replaceState(
  1. Object? ctx,
  2. String title,
  3. String path,
  4. String query,
)
override

Implementation

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