Distance.withRadius constructor

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

Implementation

Distance.withRadius(final double radius,
    { final bool roundResult: true, final DistanceCalculator calculator: const Vincenty()})
    : _radius = radius, _roundResult = roundResult, _calculator = calculator {

    Validate.isTrue(radius > 0, "Radius must be greater than 0 but was $radius");
}