onCreated property

EventStream<Tab> get onCreated

Fired when a tab is created. Note that the tab's URL and tab group membership may not be set at the time this event is fired, but you can listen to onUpdated events so as to be notified when a URL is set or the tab is added to a tab group.

Implementation

EventStream<Tab> get onCreated =>
    $js.chrome.tabs.onCreated.asStream(($c) => ($js.Tab tab) {
          return $c(Tab.fromJS(tab));
        });