toPositionedRect method

Rect toPositionedRect(
  1. Vector2 size
)

Creates a Rect starting from (x, y) and having the size of the argument Vector2

Implementation

Rect toPositionedRect(Vector2 size) => Rect.fromLTWH(x, y, size.x, size.y);