Offset constructor

const Offset(
  1. int x,
  2. int y
)

Creates an Offset with the given x and y coordinates.

Implementation

const Offset(this.x, this.y);