pushState static method

void pushState(
  1. String path, {
  2. String? title,
})

Push a new history entry.

This adds a new entry to the browser's history stack, meaning the user can press back to return.

Implementation

static void pushState(String path, {String? title}) {
  if (!Webify.isInitialized) return;
  if (!Webify.instance.platform.isWeb) return;

  _pushHistoryState(path, title);
}