magnitude property Null safety
Get the straight line (Euclidean) distance between the origin (0, 0) and this point.
Implementation
double get magnitude => sqrt(x * x + y * y);
Get the straight line (Euclidean) distance between the origin (0, 0) and this point.
double get magnitude => sqrt(x * x + y * y);