rectangle property
Rect
get
rectangle
Gets the bounding rectangle of this object.
This getter uses lazy initialization to compute the bounding box only when first accessed, and then caches the result for subsequent calls.
Returns: A Rect representing the bounding box of this object.
Note: If the object's dimensions or position can change, this cached value may become outdated. In such cases, consider adding a method to invalidate the cache when necessary.
Implementation
Rect get rectangle {
return getBoundingBox(this.artifacts);
}