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