to method

Distance to(
  1. DistanceTypes type_
)

Implementation

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