comma method
Implementation
String comma() {
return toString().replaceAllMapped(RegExp(r'(\d+)(\d{3})'), (Match m) {
return '${m[1]},${m[2]}';
});
}
String comma() {
return toString().replaceAllMapped(RegExp(r'(\d+)(\d{3})'), (Match m) {
return '${m[1]},${m[2]}';
});
}