TextEditingDelta constructor Null safety

const TextEditingDelta(
  1. {required String oldText,
  2. required TextSelection selection,
  3. required TextRange composing}

Creates a delta for a given change to the editing state.

The oldText, selection, and composing arguments must not be null.


const TextEditingDelta({
  required this.oldText,
  required this.selection,
  required this.composing,
}) : assert(oldText != null),
     assert(selection != null),
     assert(composing != null);