Offset toOffset()

Converts this point to an Offset with the same coordinates.

Source

// does the equivalent of "return this - Point.origin"
Offset toOffset() => new Offset(x, y);