to method
Implementation
Distance to(DistanceTypes type_) {
double? current = ConstantValues.Meter2TypeConvertTable[_type];
double? dest = ConstantValues.Meter2TypeConvertTable[type_];
return Distance.withType(value * current! * dest!, type_);
}