TextEditingDeltaReplacement constructor Null safety
- {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.
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 TextEditingDeltaReplacement({
required super.oldText,
required this.replacementText,
required this.replacedRange,
required super.selection,
required super.composing,
});