TextEditingDeltaNonTextUpdate constructor Null safety

const TextEditingDeltaNonTextUpdate(
  1. {required String oldText,
  2. required TextSelection selection,
  3. 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:

Implementation

const TextEditingDeltaNonTextUpdate({
  required super.oldText,
  required super.selection,
  required super.composing,
});