I\'m trying to adapt this: Insert commas into number string to work in dart, but no luck.
either one of these don\'t work:
print(\"1000200\".replaceAllMa
Try the following regex: (\d{1,3})(?=(\d{3})+$)
(\d{1,3})(?=(\d{3})+$)
This will provide two backreferences, and replacing your number using them like $1,$2, will add commas where they are supposed to be.
$1,$2,