DOMRectReadOnly class Null safety

The interface specifies the standard properties used by DOMRect to define a rectangle whose properties are immutable.

Implementers
Annotations

Constructors

DOMRectReadOnly([dynamic x = 0, dynamic y = 0, dynamic width = 0, dynamic height = 0])
factory

Properties

bottom → dynamic
Returns the bottom coordinate value of the DOMRect (usually the same as y + height).
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
height → dynamic
The height of the DOMRect.
read-only
left → dynamic
Returns the left coordinate value of the DOMRect (usually the same as x).
read-only
Returns the right coordinate value of the DOMRect (usually the same as x + width).
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
top → dynamic
Returns the top coordinate value of the DOMRect (usually the same as y.)
read-only
width → dynamic
The width of the DOMRect.
read-only
x → dynamic
The x coordinate of the DOMRect's origin.
read-only
y → dynamic
The y coordinate of the DOMRect's origin.
read-only

Methods

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

Operators

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

Static Methods

fromRect([DOMRectInit? other]) → dynamic