strimFloat method
Implementation
String strimFloat() {
String text = this;
if (text.isNotEmpty) {
text.replaceAll(',', '');
final array = text.split('.');
if (array.length > 1 && array[1].isNotEmpty) {
final price = double.parse(array[1]);
if (price == 0) {
text = array[0];
}
}
}
return text;
}