Rectangle<T extends num> class Null safety

Implemented types


Rectangle(T left, T top, T width, T height)
Rectangle.from(Rectangle<T> r)


bottom ↔ T
The y-coordinate of the bottom edge.
read / write
bottomLeft Point<T>
read / write
bottomRight Point<T>
read / write
center Point<num>
hashCode int
The hash code for this object.
height ↔ T
The height of the rectangle.
read / writeoverride
isEmpty bool
left ↔ T
The x-coordinate of the left edge.
read / writeoverride
The x-coordinate of the right edge.
read / write
runtimeType Type
A representation of the runtime type of the object.
size Point<T>
read / write
top ↔ T
The y-coordinate of the left edge.
read / writeoverride
topLeft Point<T>
read / write
topRight Point<T>
read / write
width ↔ T
The width of the rectangle.
read / writeoverride


align() Rectangle<int>
boundingBox(Rectangle<T> other) Rectangle<T>
Returns a rectangle which completely contains this and other.
clone() Rectangle<T>
contains(num px, num py) bool
containsPoint(Point<num> p) bool
Tests whether another is inside or along the edges of this.
containsRectangle(Rectangle<num> r) bool
Tests whether this entirely contains another.
copyFrom(Rectangle<T> r) → void
inflate(T dx, T dy) → void
inflatePoint(Point<T> p) → void
intersection(Rectangle<T> rect) Rectangle<T>
Computes the intersection of this and other.
intersects(Rectangle<num> r) bool
Returns true if this intersects other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
offset(T dx, T dy) → void
offsetPoint(Point<T> p) → void
setTo(T rx, T ry, T rwidth, T rheight) → void
toString() String
A string representation of this object.


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