graphemeLength property
int
get
graphemeLength
Gets the grapheme length (number of user-perceived characters).
This counts Unicode grapheme clusters rather than code units. For example, an emoji like 👨👩👧 counts as 1 grapheme even though it consists of multiple code points.
Implementation
int get graphemeLength => characters.length;