DistanceVincenty.withRadius constructor
Radius must be greater than 0.
Implementation
DistanceVincenty.withRadius(final double radius,
{final bool roundResult = true})
: super.withRadius(radius,
roundResult: roundResult, calculator: const Vincenty()) {
if (radius <= 0) {
throw ArgumentError.value(
radius, 'radius', 'Radius must be greater than 0');
}
}