onSelectionChanged property

EventStream<OnSelectionChangedEvent> get onSelectionChanged

Fires when the selected tab in a window changes.

Implementation

EventStream<OnSelectionChangedEvent> get onSelectionChanged =>
    $js.chrome.tabs.onSelectionChanged.asStream(($c) => (
          int tabId,
          $js.OnSelectionChangedSelectInfo selectInfo,
        ) {
          return $c(OnSelectionChangedEvent(
            tabId: tabId,
            selectInfo: OnSelectionChangedSelectInfo.fromJS(selectInfo),
          ));
        }.toJS);