ResizeObserverEntry class Null safety

The interface represents the object passed to the ResizeObserver() constructor's callback function, which allows you to access the new dimensions of the Element or SVGElement being observed.

Annotations

Constructors

ResizeObserverEntry()
factory

Properties

borderBoxSize Iterable<ResizeObserverSize>
An object containing the new border box size of the observed element when the callback is run.
read-only
contentBoxSize Iterable<ResizeObserverSize>
An object containing the new content box size of the observed element when the callback is run.
read-only
contentRect DOMRectReadOnly
A DOMRectReadOnly object containing the new size of the observed element when the callback is run. Note that this is better supported than the above two properties, but it is left over from an earlier implementation of the Resize Observer API, is still included in the spec for web compat reasons, and may be deprecated in future versions.
read-only
devicePixelContentBoxSize Iterable<ResizeObserverSize>
An object containing the new content box size in device pixels of the observed element when the callback is run.
read-only
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
target Element
A reference to the Element or SVGElement being observed.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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