parseIntIntoAmount method

String parseIntIntoAmount()

Implementation

String parseIntIntoAmount() {
  final result = toString().replaceAllMapped(
      RegExp(r'(\d{1,3})(?=(\d{3})+(?!\d))'), (Match m) => '${m[1]} ');
  return result;
}