mToKm method
m 转 km
Implementation
String mToKm() {
var m = this;
if (m == null) {
return "";
} else {
if (m < 1000) {
return "${m.toStringAsFixed(0)}m";
} else {
return "${m.divide(1000).toStringAsFixed(2)}km";
}
}
}