selectSingleEntryHistory static method Null safety

Future<void> selectSingleEntryHistory()

Selects the single-entry history mode.

On web, this switches the browser history model to one that only tracks a single entry, so that calling routeInformationUpdated replaces the current entry.

Currently, this is ignored on other platforms.

See also:

Implementation

static Future<void> selectSingleEntryHistory() {
  return SystemChannels.navigation.invokeMethod<void>('selectSingleEntryHistory');
}