toStringNoPadding method
return the shortest possible string for the value eg 1.2500 => "1.25" 1.0000 => "1"
Implementation
String toStringNoPadding() {
var s = toString();
if (s.endsWith(_wholeNumEnding)) {
return value.toInt().toString();
} else {
return value.toString();
}
}