$new static method
Wrapper for the Distance.new constructor
Implementation
static $Value? $new(Runtime runtime, $Value? thisValue, List<$Value?> args) {
return $Distance.wrap(
Distance(
roundResult: args[0]?.$value ?? true,
calculator: args[1]?.$value ?? const Vincenty(),
),
);
}