bounds property
Returns a rectangle that defines the area of this display object in this display object's local coordinates.
Implementation
@override
Rectangle<num> get bounds {
var left = double.infinity;
var top = double.infinity;
var right = double.negativeInfinity;
var bottom = double.negativeInfinity;
for (var i = 0; i < ixList.length; i++) {
final index = ixList[i + 0];
final vertexX = vxList[(index << 2) + 0];
final vertexY = vxList[(index << 2) + 1];
if (left > vertexX) left = vertexX;
if (right < vertexX) right = vertexX;
if (top > vertexY) top = vertexY;
if (bottom < vertexY) bottom = vertexY;
}
return Rectangle<num>(left, top, right - left, bottom - top);
}