Rect constructor

const Rect(
  1. Vec2 position,
  2. Vec2 size
)

Implementation

const Rect(this.position, this.size);