unit property

Offset get unit

Implementation

Offset get unit {
  final double l = distance;
  if (l == 0) return Offset.zero;
  return this / l;
}