IntOffset constructor

const IntOffset([
  1. int x = 0,
  2. int y = 0
])

Creates an IntOffset with the given x and y coordinates.

If no arguments are provided, creates an offset at the origin (0,0).

  • x - The x-coordinate of the offset (defaults to 0)
  • y - The y-coordinate of the offset (defaults to 0)

Implementation

const IntOffset([this.x = 0, this.y = 0]);