Offset constructor

const Offset(double dx, double dy)

Creates an offset. The first argument sets dx, the horizontal component, and the second sets dy, the vertical component.

Implementation

const Offset(double dx, double dy) : super(dx, dy);