DOMRectReadOnly extension type

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


API documentation sourced from MDN Web Docs.

on
Implemented types
Available extensions

Constructors

DOMRectReadOnly([num x, num y, num width, num height])
factory

Properties

bottom double
The bottom read-only property of the DOMRectReadOnly interface returns the bottom coordinate value of the DOMRect. (Has the same value as y + height, or y if height is negative.)
no setter
hashCode int
The hash code for this object.
no setterinherited
height double
The height read-only property of the DOMRectReadOnly interface represents the height of the DOMRect.
no setter
left double
The left read-only property of the DOMRectReadOnly interface returns the left coordinate value of the DOMRect. (Has the same value as x, or x + width if width is negative.)
no setter
The right read-only property of the DOMRectReadOnly interface returns the right coordinate value of the DOMRect. (Has the same value as x + width, or x if width is negative.)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
top double
The top read-only property of the DOMRectReadOnly interface returns the top coordinate value of the DOMRect. (Has the same value as y, or y + height if height is negative.)
no setter
width double
The width read-only property of the DOMRectReadOnly interface represents the width of the DOMRect.
no setter
x double
The x read-only property of the DOMRectReadOnly interface represents the x coordinate of the DOMRect's origin.
no setter
y double
The y read-only property of the DOMRectReadOnly interface represents the y coordinate of the DOMRect's origin.
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

Static Methods

fromRect([DOMRectInit other]) DOMRectReadOnly
The fromRect() static method of the DOMRectReadOnly object creates a new DOMRectReadOnly object with a given location and dimensions.