Shanmukha
Shanmukha

Reputation: 2594

How to use Unicode to print symbols in dart?

I wanted to print symbols in dart language using only Unicode something like U+20B9 and not escape sequence(\u20B9). I am used below dart code. Is there any way to print the symbols using only Unicode?I am using Unicode from this website https://www.rapidtables.com/code/text/unicode-characters.html

void main(){
  print('\u20B9');//escape sequence
  print("U+20B9");//Unicode
}

output

₹
U+20B9

Upvotes: 0

Views: 938

Answers (1)

Ruchit
Ruchit

Reputation: 2770

you can use following package on pub.dev

:characters: ^1.2.0

link

Upvotes: 1

Related Questions