TextEditingDeltaInsertion constructor Null safety
- {required String oldText,
- required String textInserted,
- required int insertionOffset,
- required TextSelection selection,
- required TextRange composing}
Creates an insertion delta for a given change to the editing state.
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 TextEditingDeltaInsertion({
required super.oldText,
required this.textInserted,
required this.insertionOffset,
required super.selection,
required super.composing,
});