toEnglishNumbers property
String
get
toEnglishNumbers
Implementation
String get toEnglishNumbers {
Map numbers = {
'\u0660': '0',
'\u0661': '1',
'\u0662': '2',
'\u0663': '3',
'\u0664': '4',
'\u0665': '5',
'\u0666': '6',
'\u0667': '7',
'\u0668': '8',
'\u0669': '9',
};
String number = this;
numbers.forEach((key, value) => number = number.replaceAll(key, value));
return number;
}