remove0Tail property
String
get
remove0Tail
Implementation
String get remove0Tail {
if (contains('.') == false) {
return this;
}
var money = this;
while (money.endsWith('0')) {
money = money.substring(0, money.length - 1);
}
if (money.endsWith('.')) {
money = money.substring(0, money.length - 1);
}
return money;
}