ChromeDevtoolsInspectedWindow class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
onResourceAdded EventStream<Resource>
Fired when a new resource is added to the inspected page.
no setter
onResourceContentCommitted EventStream<OnResourceContentCommittedEvent>
Fired when a new revision of the resource is committed (e.g. user saves an edited version of the resource in the Developer Tools).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabId int
The ID of the tab being inspected. This ID may be used with chrome.tabs.* API.
no setter

Methods

eval(String expression, EvalOptions? options) Future<EvalResult>
Evaluates a JavaScript expression in the context of the main frame of the inspected page. The expression must evaluate to a JSON-compliant object, otherwise an exception is thrown. The eval function can report either a DevTools-side error or a JavaScript exception that occurs during evaluation. In either case, the result parameter of the callback is undefined. In the case of a DevTools-side error, the isException parameter is non-null and has isError set to true and code set to an error code. In the case of a JavaScript error, isException is set to true and value is set to the string value of thrown object. expression An expression to evaluate. options The options parameter can contain one or more options. returns A function called when evaluation completes.
getResources() Future<List<Resource>>
Retrieves the list of resources from the inspected page. returns A function that receives the list of resources when the request completes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload(ReloadOptions? reloadOptions) → void
Reloads the inspected page.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited