onReplaced property

EventStream<OnReplacedEvent> get onReplaced

Fired when a tab is replaced with another tab due to prerendering or instant.

Implementation

EventStream<OnReplacedEvent> get onReplaced =>
    $js.chrome.tabs.onReplaced.asStream(($c) => (
          int addedTabId,
          int removedTabId,
        ) {
          return $c(OnReplacedEvent(
            addedTabId: addedTabId,
            removedTabId: removedTabId,
          ));
        }.toJS);