isGlyphBoundary method
Whether index is at the start of a glyph cluster boundary (i.e. not in
the middle of a multi-codepoint glyph).
Implementation
bool isGlyphBoundary(int index) {
if (index <= 0 || index >= indices.length) {
return true;
}
return indices[index] != indices[index - 1];
}