TextEditingValue constructor
- String text = '',
- TextSelection selection = const TextSelection.collapsed(offset: -1),
- TextRange composing = TextRange.empty,
Creates information for editing a run of text.
The selection and composing range must be within the text. This is not checked during construction, and must be guaranteed by the caller.
The default value of selection
is TextSelection.collapsed(offset: -1)
.
This indicates that there is no selection at all.
Implementation
const TextEditingValue({
this.text = '',
this.selection = const TextSelection.collapsed(offset: -1),
this.composing = TextRange.empty,
});