onActivated property

Fires when the active tab in a window changes. Note that the tab's URL may not be set at the time this event fired, but you can listen to onUpdated events so as to be notified when a URL is set.

Implementation

EventStream<OnActivatedActiveInfo> get onActivated =>
    $js.chrome.tabs.onActivated
        .asStream(($c) => ($js.OnActivatedActiveInfo activeInfo) {
              return $c(OnActivatedActiveInfo.fromJS(activeInfo));
            });