kkmToM method

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

km 转 m

Implementation

String kkmToM({NumFormat format = NumFormat.longDef}) {
  var file = this;
  if (file == null) {
    return "";
  } else {
    if (file < 0.000001) {
      return "${file.kmulti(1000)}m";
    } else {
      return "${file.kmulti(1000).kformatStr(format: format)}m";
    }
  }
}