rect property

Rect rect

Implementation

Rect get rect {
  if (shape is CircleShape) {
    return (shape as CircleShape).rect.rect;
  }

  if (shape is RectangleShape) {
    return (shape as RectangleShape).rect;
  }

  if (shape is PolygonShape) {
    return (shape as PolygonShape).rect.rect;
  }

  return Rect.zero;
}