onInstalled property

EventStream<OnInstalledDetails> get onInstalled

Fired when the extension is first installed, when the extension is updated to a new version, and when Chrome is updated to a new version.

Implementation

EventStream<OnInstalledDetails> get onInstalled =>
    $js.chrome.runtime.onInstalled
        .asStream(($c) => ($js.OnInstalledDetails details) {
              return $c(OnInstalledDetails.fromJS(details));
            });