DistanceVincenty.withRadius constructor

DistanceVincenty.withRadius(
  1. double radius, {
  2. bool roundResult = true,
})

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');
  }
}