length2 property Null safety

double length2

Length squared.

Implementation

double get length2 {
  double sum;
  sum = _v2storage[0] * _v2storage[0];
  sum += _v2storage[1] * _v2storage[1];
  return sum;
}