currentChar property
int
get
currentChar
The index of the character that should be appearing given the fact that TextBoxComponent can build up its text per character at the rate dictated by TextBoxConfig.timePerChar in boxConfig. If the timePerChar is 0, then returns the last possible character index.
Implementation
int get currentChar => boxConfig.timePerChar == 0.0
? _actualTextLength
: math.min(_lifeTime ~/ boxConfig.timePerChar, _actualTextLength);