removeCommas property

String get removeCommas

Removes commas from the string.

Useful for cleaning formatted numbers before parsing.

Example:

String text = '11,111';
String cleaned = text.removeCommas; // '11111'

Implementation

String get removeCommas => replaceAll(',', '');