TextEditingDeltaReplacement constructor

const TextEditingDeltaReplacement(
  1. {required String oldText,
  2. required String replacementText,
  3. required TextRange replacedRange,
  4. required TextSelection selection,
  5. 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:


const TextEditingDeltaReplacement({
  required super.oldText,
  required this.replacementText,
  required this.replacedRange,
  required super.selection,
  required super.composing,