bool isSingleCodePoint(String s) { final iterator = s.runes.iterator; if (!iterator.moveNext()) return false; return !iterator.moveNext(); }