The following error has been reported at the given line:
StateError at _GrowableList.last
|
selectionBoxes.last : selectionBoxes.first; |
There is no known repro, but it seems that getBoxesForSelection is returning an empty List in some cases. Reading the docs, this is possible when the selection does not include a full character, which can happen with extended grapheme clusters and surrogate pairs.
References
PR that caused this: #102992
Google internal bug b/260121913