Report extension type

The Report interface of the Reporting API represents a single report.

Reports can be accessed in a number of ways:

  • Via the ReportingObserver.takeRecords method — this returns all reports in an observer's report queue, and then empties the queue.
  • Via the reports parameter of the callback function passed into the ReportingObserver() constructor upon creation of a new observer instance. This contains the list of reports currently contained in the observer's report queue.
  • By sending requests to the endpoints defined via the HTTP header.

API documentation sourced from MDN Web Docs.

on
Implemented types
Available extensions

Properties

body ReportBody?
The body read-only property of the Report interface returns the body of the report, which is a ReportBody object containing the detailed report information.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type read-only property of the Report interface returns the type of report generated, e.g. deprecation or intervention.
no setter
url String
The url read-only property of the Report interface returns the URL of the document that generated the report.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() JSObject
toString() String
A string representation of this object.
inherited

Operators

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