onResourceContentCommitted property

EventStream<OnResourceContentCommittedEvent> get onResourceContentCommitted

Fired when a new revision of the resource is committed (e.g. user saves an edited version of the resource in the Developer Tools).

Implementation

EventStream<OnResourceContentCommittedEvent> get onResourceContentCommitted =>
    $js.chrome.devtools.inspectedWindow.onResourceContentCommitted
        .asStream(($c) => (
              $js.Resource resource,
              String content,
            ) {
              return $c(OnResourceContentCommittedEvent(
                resource: Resource.fromJS(resource),
                content: content,
              ));
            }.toJS);