SerializableRect class
Properties
bottom
→ double
The offset of the bottom edge of this rectangle from the y axis.
final inherited
bottomCenter
→ Offset
The offset to the center of the bottom edge of this rectangle.
no setter inherited
bottomLeft
→ Offset
The offset to the intersection of the bottom and left edges of this rectangle.
no setter inherited
bottomRight
→ Offset
The offset to the intersection of the bottom and right edges of this rectangle.
no setter inherited
center
→ Offset
The offset to the point halfway between the left and right and the top and
bottom edges of this rectangle.
no setter inherited
centerLeft
→ Offset
The offset to the center of the left edge of this rectangle.
no setter inherited
centerRight
→ Offset
The offset to the center of the right edge of this rectangle.
no setter inherited
hashCode
→ int
The hash code for this object.
no setter inherited
hasNaN
→ bool
Whether any of the dimensions are NaN
.
no setter inherited
height
→ double
The distance between the top and bottom edges of this rectangle.
no setter inherited
isEmpty
→ bool
Whether this rectangle encloses a non-zero area. Negative areas are
considered empty.
no setter inherited
isFinite
→ bool
Whether all coordinates of this rectangle are finite.
no setter inherited
isInfinite
→ bool
Whether any of the coordinates of this rectangle are equal to positive infinity.
no setter inherited
left
→ double
The offset of the left edge of this rectangle from the x axis.
final inherited
longestSide
→ double
The greater of the magnitudes of the width and the height of this
rectangle.
no setter inherited
right
→ double
The offset of the right edge of this rectangle from the x axis.
final inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
shortestSide
→ double
The lesser of the magnitudes of the width and the height of this
rectangle.
no setter inherited
size
→ Size
The distance between the upper-left corner and the lower-right corner of
this rectangle.
no setter inherited
top
→ double
The offset of the top edge of this rectangle from the y axis.
final inherited
topCenter
→ Offset
The offset to the center of the top edge of this rectangle.
no setter inherited
topLeft
→ Offset
The offset to the intersection of the top and left edges of this rectangle.
no setter inherited
topRight
→ Offset
The offset to the intersection of the top and right edges of this rectangle.
no setter inherited
width
→ double
The distance between the left and right edges of this rectangle.
no setter inherited
Methods
contains (Offset offset )
→ bool
Whether the point specified by the given offset (which is assumed to be
relative to the origin) lies between the left and right and the top and
bottom edges of this rectangle.
inherited
deflate (double delta )
→ Rect
Returns a new rectangle with edges moved inwards by the given delta.
inherited
expandToInclude (Rect other )
→ Rect
Returns a new rectangle which is the bounding box containing this
rectangle and the given rectangle.
inherited
inflate (double delta )
→ Rect
Returns a new rectangle with edges moved outwards by the given delta.
inherited
intersect (Rect other )
→ Rect
Returns a new rectangle that is the intersection of the given
rectangle and this rectangle. The two rectangles must overlap
for this to be meaningful. If the two rectangles do not overlap,
then the resulting Rect will have a negative width or height.
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overlaps (Rect other )
→ bool
Whether other
has a nonzero area of overlap with this rectangle.
inherited
shift (Offset offset )
→ Rect
Returns a new rectangle translated by the given offset.
inherited
toJson ()
→ Map <String , dynamic >
toString ()
→ String
A string representation of this object.
inherited
translate (double translateX , double translateY )
→ Rect
Returns a new rectangle with translateX added to the x components and
translateY added to the y components.
inherited