activeIndex property
int
get
activeIndex
The box the next character goes in: the first empty one, or the last when the code is whole.
Implementation
int get activeIndex =>
text.text.length >= length ? length - 1 : text.text.length;