toRect method

Rect toRect()

Creates a Rect starting in origin and going the Vector2

Implementation

Rect toRect() => Rect.fromLTWH(0, 0, x, y);