Offset constructor Null safety

const Offset(
  1. double dx,
  2. 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);