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 = EARTH_RADIUS, _roundResult = roundResult, _calculator = calculator;