boundingBox property

  1. @override
PRectangle get boundingBox
override

The bounding box of this element.

Implementation

@override
PRectangle get boundingBox {
  var position = this.position.resolve();
  var dimension = this.dimension.resolve();
  return PRectangle(
      position.x, position.y, dimension.width, dimension.height);
}