const TextEditingState({String text, int selectionBase: -1, int selectionExtent: -1, TextAffinity selectionAffinity: TextAffinity.downstream, bool selectionIsDirectional: false, int composingBase: -1, int composingExtent: -1 })

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,
});