TextEditingDeltaReplacement constructor
- required String oldText,
- required String replacementText,
- required TextRange replacedRange,
- required TextSelection selection,
- required TextRange composing,
Creates a replacement delta for a given change to the editing state.
The range that is being replaced can either grow or shrink based on the given replacement text.
A replacement can occur in cases such as auto-correct, suggestions, and when a selection is replaced by a single character.
See also:
- TextInputConfiguration, to opt-in your DeltaTextInputClient to receive TextEditingDelta's you must set TextInputConfiguration.enableDeltaModel to true.
Implementation
const TextEditingDeltaReplacement({
required super.oldText,
required this.replacementText,
required this.replacedRange,
required super.selection,
required super.composing,
});