dot method

double dot(
  1. Offset other
)

Implementation

double dot(Offset other) => dx * other.dx + dy * other.dy;