convertArabicNumbers method
Implementation
String convertArabicNumbers() {
final arabicToWestern = {
'٠': '0',
'١': '1',
'٢': '2',
'٣': '3',
'٤': '4',
'٥': '5',
'٦': '6',
'٧': '7',
'٨': '8',
'٩': '9',
};
return (this ?? '').split('').map((char) => arabicToWestern[char] ?? char).join();
}