Created
June 30, 2021 06:24
-
-
Save naimurhasan/237a53ad435181201471c577978030b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String digitInBengaliString(digits) { | |
const Map NumberToBengaliMap = { | |
0: '০', | |
1: '১', | |
2: '২', | |
3: '৩', | |
4: '৪', | |
5: '৫', | |
6: '৬', | |
7: '৭', | |
8: '৮', | |
9: '৯', | |
}; | |
String converted = digits.toString(); | |
NumberToBengaliMap.forEach((k, v) { | |
converted = converted.replaceAll(k.toString(), v); | |
}); | |
return converted; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment