Creates state for text editing.
The selectionBase, selectionExtent, selectionAffinity, selectionIsDirectional, selectionIsDirectional, composingBase, and composingExtent arguments must not be null.
Source
const TextEditingState({
this.text,
this.selectionBase: -1,
this.selectionExtent: -1,
this.selectionAffinity: TextAffinity.downstream,
this.selectionIsDirectional: false,
this.composingBase: -1,
this.composingExtent: -1,
});