TextEditingValue constructor

const TextEditingValue(
  1. {String text: '',
  2. TextSelection selection: const TextSelection.collapsed(offset: -1),
  3. TextRange composing: TextRange.empty}
)

Creates information for editing a run of text.

The selection and composing range must be within the text.

The text, selection, and composing arguments must not be null but each have default values.

Implementation

const TextEditingValue({
  this.text = '',
  this.selection = const TextSelection.collapsed(offset: -1),
  this.composing = TextRange.empty,
}) : assert(text != null),
     assert(selection != null),
     assert(composing != null);