TextInput stores the entire input value as a string and contains an index as the current character position inside the stream.
TextInput
input
string
index
The current position reached by a decoder.
The string input. Its value is never modified by the decoders at any point in the chain.
TextInputstores the entireinputvalue as astringand contains anindexas the current character position inside the stream.