destination function Null safety

Point destination(
  1. Point origin,
  2. num distance,
  3. num bearing,
  4. [Unit unit = Unit.kilometers]
)

Implementation

Point destination(Point origin, num distance, num bearing,
        [Unit unit = Unit.kilometers]) =>
    Point(
      coordinates: destinationRaw(origin.coordinates, distance, bearing, unit),
    );