PerformanceObserver class Null safety

The interface is used to observe performance measurement events and be notified of new performance entries as they are recorded in the browser's performance timeline. Note: This feature is available in Web Workers

Annotations

Constructors

PerformanceObserver(PerformanceObserverCallback callback)
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

disconnect() Object
Stops the performance observer callback from receiving performance entries. performanceObserver.disconnect(); [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
observe([PerformanceObserverInit? options]) Object
Specifies the set of entry types to observe. The performance observer's callback function will be invoked when a performance entry is recorded for one of the specified entryTypes observer.observe(options);
takeRecords() Iterable<PerformanceEntry>
Returns the current list of performance entries stored in the performance observer, emptying it out. var performanceEntryList = performanceObserver.takeRecords(); [...]
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

supportedEntryTypes Iterable<String>
Returns an array of the entryType values supported by the user agent.
read-only