distanceTo method Null safety

double distanceTo(
  1. Vector2 arg
)

Distance from this to arg

Implementation

double distanceTo(Vector2 arg) => math.sqrt(distanceToSquared(arg));