rect property Null safety

Rectangle<int> rect

The bounds of this element.

Implementation

Rectangle<int> get rect {
  final location = this.location;
  final size = this.size;
  return Rectangle<int>(location.x, location.y, size.width, size.height);
}