Skip to content

Instantly share code, notes, and snippets.

@arpit
Created April 27, 2019 23:38
Show Gist options
  • Select an option

  • Save arpit/ed29aecf6a1ed73f1ab949fea189bffa to your computer and use it in GitHub Desktop.

Select an option

Save arpit/ed29aecf6a1ed73f1ab949fea189bffa to your computer and use it in GitHub Desktop.

Revisions

  1. arpit created this gist Apr 27, 2019.
    5 changes: 5 additions & 0 deletions emoji.dart
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    String s = "😀 hello";

    s.runes.forEach((int i){
    String x = String.fromCharCode(i); // Get emoji as 1 string and now 2 CodePoints
    }