TextEditingDeltaNonTextUpdate constructor Null safety
- {required String oldText,
- required TextSelection selection,
- required TextRange composing}
Creates a delta representing no updates to the text value of the current editing state. This delta includes updates to the selection and/or composing regions.
A situation where this delta would be created is when dragging the selection handles. There are no changes to the text, but there are updates to the selection and potentially the composing region as well.
The oldText, selection, and composing arguments must not be null.
See also:
- TextInputConfiguration, to opt-in your DeltaTextInputClient to receive TextEditingDelta's you must set TextInputConfiguration.enableDeltaModel to true.
Implementation
const TextEditingDeltaNonTextUpdate({
required super.oldText,
required super.selection,
required super.composing,
});