Distance constructor

const Distance({
  1. bool roundResult = true,
  2. DistanceCalculator calculator = const Vincenty(),
})

Implementation

const Distance(
    {final bool roundResult = true,
    final DistanceCalculator calculator = const Vincenty()})
    : _radius = earthRadius,
      _roundResult = roundResult,
      _calculator = calculator;