getPriceCr function
Implementation
String getPriceCr(String text) {
if(text.isNotEmpty)
{
try {
var formatter = NumberFormat('#,##,###');
return "${formatter.format(double.parse(text))} Cr";
} catch (e) {
return "$text" + " Cr" ;
}
}
else
{
return "$text" + " Cr" ;
}
}