kmToKm method

String kmToKm({
  1. NumFormat format = NumFormat.longDef,
})

m 转 km

Implementation

String kmToKm({NumFormat format = NumFormat.longDef}) {
  var file = this;
  if (file == null) {
    return "";
  } else {
    if (file < 1) {
      return "${file.kdivide(1000)}km";
    } else {
      return "${file.kdivide(1000).kformatStr(format: format)}km";
    }
  }
}